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 listOct 16, 2024 23:54Serge SmirnovSerge SmirnovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2024 23:5400000Error: expected "53689155433571329 ", got "53689155431011329 "
2Oct 17, 2024 00:0431,348285,777,956258,189,0002,001,0002,523,136
3Oct 16, 2024 23:5433,152296,451,399273,163,0002,001,0002,277,376
4Oct 17, 2024 00:0433,157297,908,058273,205,0002,001,0002,289,664
5Oct 17, 2024 00:0433,166305,459,692275,276,00002,289,664
6Oct 16, 2024 23:5433,187303,057,100274,452,0001,001,0002,289,664
7Oct 16, 2024 23:5433,192305,765,367274,493,0001,001,0002,289,664