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 18, 2024 03:21zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 18, 2024 03:2000000Error: expected "53691152488511791 ", got "53691152488521359 "stderr
2Nov 18, 2024 03:213,71658,414,24429,845,000994,0002,379,776
3Nov 18, 2024 03:213,71760,250,50728,857,0001,990,0002,383,872
4Nov 18, 2024 03:213,72958,351,51128,955,0001,996,0002,531,328
5Nov 18, 2024 03:213,73257,430,71729,979,000999,0002,523,136
6Nov 18, 2024 03:213,74652,868,89429,089,0002,006,0002,396,160
7Nov 18, 2024 03:213,78749,150,76830,418,0001,013,0002,392,064