Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listJul 13, 2024 13:44kytanskytansScore: 153,928Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2024 13:39153,8931,341,332,6641,277,314,62002,293,760
2Jul 13, 2024 13:39153,8951,334,691,9251,277,330,74002,293,760
3Jul 13, 2024 13:44153,9191,334,336,0481,277,527,14602,293,760
4Jul 13, 2024 13:44153,9281,338,789,9951,277,599,42902,289,664
5Jul 13, 2024 13:39153,9611,338,759,8921,277,879,89702,293,760
6Jul 13, 2024 13:44154,3871,333,576,1761,281,410,22302,289,664