Public submissions
|Source code of every submission to this problem in this contest|will be visible for everyone since {$pdata.sc_from}.|
Zgłaszanie | Wszystkie zgłoszenia | Najlepsze | Lista |
PP115A2 - Suma kwadratów |
Oblicz sumę kwadratów liczb: a, a+1, ..., b-1, b.
Wejście
Dwie liczby: 1 <= a <= b <=100.
Wyjście
Obliczona suma: a*a + (a+1)*(a+1) + ... + (b-1)*(b-1) + b*b
Przykład
Input: 1 4 Output: 30
Przykład 2
Input: 5 6 Output: 61
Dodane przez: | kuszi |
Data dodania: | 2011-11-24 |
Limit czasu wykonania programu: | 1s |
Limit długości kodu źródłowego | 50000B |
Limit pamięci: | 1536MB |
Cluster: | Cube (Intel G860) |
Języki programowania: | All except: ASM64 SCALA SCM qobi |
Public source code since: | 2012-06-16 15:43:52 |