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 23:27zielajzielajScore: 3,716Success
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 23:273,59961,204,43827,881,0001,991,0002,514,944
2Nov 18, 2024 23:273,60356,590,78728,906,000996,0002,371,584
3Nov 18, 2024 23:273,65655,530,04328,325,0002,023,0002,375,680
4Nov 18, 2024 23:273,71658,906,79929,851,000995,0002,527,232
5Nov 18, 2024 23:273,73255,009,63529,979,000999,0002,375,680
6Nov 18, 2024 23:273,78050,019,37629,349,0002,024,0002,531,328