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 02:10zielajzielajError
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 02:0900000Error: expected "53687001379489294 ", got "53687007952496453 "stderr
2Nov 20, 2024 02:103,51456,812,39727,159,0002,011,0002,379,776
3Nov 20, 2024 02:103,51951,382,19427,193,0002,014,0002,527,232
4Nov 20, 2024 02:103,53053,367,33928,289,0001,010,0002,383,872
5Nov 20, 2024 02:103,68757,212,71628,625,0001,974,0002,392,064
6Nov 20, 2024 02:103,68953,727,27929,598,0001,020,0002,404,352
7Nov 20, 2024 02:103,71554,200,52128,844,0001,989,0002,531,328