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:34zielajzielajScore: 5,134Success
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:344,39164,114,79735,434,0001,012,0002,367,488
2Nov 14, 2024 03:344,40562,979,56436,559,00002,523,136
3Nov 14, 2024 03:344,42161,216,05935,673,0001,019,0002,514,944
4Nov 14, 2024 03:345,13470,900,58642,609,00002,527,232
5Nov 14, 2024 03:345,16069,294,06441,829,000995,0002,527,232
6Nov 14, 2024 03:345,21563,727,36942,282,0001,006,0002,383,872