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 listJun 6, 2024 10:40matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 10:4000000Error: expected "53683388204678073 ", got "42764 1853860628438002540 -8263856737988585741 -5011175887647891427 3136790246689946364 -2991579050450167378 3009819103506468750 6985071753036386541 -4271742345687834006 -3562349600276577693 -47553767088245305...stderr
2Jun 6, 2024 10:4000000Error: expected "53680061189969852 ", got "43273 -8269030310402858163 -8480298467120229910 -8351715255425642584 8523397114247638849 2914365170897315053 7692713197742967033 6371007408205725744 625092502053335926 -6227794011193868014 -2443884835128358693...stderr