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 14, 2024 03:38zielajzielajScore: 4,235Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 14, 2024 03:384,19962,926,90333,853,000995,0002,527,232
2Nov 14, 2024 03:384,20355,103,72232,894,0001,993,0002,527,232
3Nov 14, 2024 03:384,21461,493,54532,980,0001,998,0002,514,944
4Nov 14, 2024 03:384,23559,105,51934,147,0001,004,0002,375,680
5Nov 14, 2024 03:384,24056,280,67233,181,0002,011,0002,465,792
6Nov 14, 2024 03:384,27157,469,80334,441,0001,012,0002,514,944