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 listNov 20, 2024 01:27zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 20, 2024 01:2600000Error: expected "53681729471475652 ", got "53681729675123870 "stderr
2Nov 20, 2024 01:2600000Error: expected "53689457046433963 ", got "53689465610927480 "stderr
3Nov 20, 2024 01:273,51851,356,57127,187,0002,013,0002,527,232
4Nov 20, 2024 01:273,51951,422,90627,195,0002,014,0002,387,968
5Nov 20, 2024 01:273,52650,958,70727,246,0002,018,0002,523,136
6Nov 20, 2024 01:273,67357,585,82929,474,0001,016,0002,404,352
7Nov 20, 2024 01:273,73855,435,93629,021,0002,001,0002,277,376
8Nov 20, 2024 01:273,80155,630,97830,535,0001,017,0002,400,256