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 17, 2024 23:43zielajzielajScore: 3,777Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 17, 2024 23:433,52257,609,62027,219,0002,016,0002,523,136
2Nov 17, 2024 23:433,54652,647,69529,434,00002,379,776
3Nov 17, 2024 23:433,66059,756,24130,376,00002,387,968
4Nov 17, 2024 23:433,77755,129,88830,339,0001,011,0002,400,256
5Nov 17, 2024 23:433,84056,226,63729,884,0001,992,0002,400,256
6Nov 17, 2024 23:433,86754,596,98130,094,0002,006,0002,490,368