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 22:03zielajzielajError
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 22:0300000Error: expected "53690622612609680 ", got "53690622909633042 "stderr
2Nov 20, 2024 22:033,56956,009,34728,601,0001,021,0002,375,680
3Nov 20, 2024 22:033,57256,381,15828,627,0001,022,0002,383,872
4Nov 20, 2024 22:033,57654,486,86928,654,0001,023,0002,527,232
5Nov 20, 2024 22:033,75151,192,13229,122,0002,008,0002,531,328
6Nov 20, 2024 22:033,79957,537,29230,515,0001,017,0002,379,776
7Nov 20, 2024 22:033,84250,793,63329,897,0001,993,0002,531,328