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 listJul 10, 2023 03:22sliceteamsliceteamScore: 9,267Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 10, 2023 03:229,224100,307,81675,554,0001,007,0002,523,136
2Jul 10, 2023 03:229,229105,436,46275,593,0001,007,0002,260,992
3Jul 10, 2023 03:229,230102,488,18175,604,0001,008,0002,260,992
4Jul 10, 2023 03:229,232100,473,71076,629,00002,498,560
5Jul 10, 2023 03:229,233101,781,42175,623,0001,008,0002,510,848
6Jul 10, 2023 03:229,235102,405,87776,653,00002,379,776
7Jul 10, 2023 03:229,240104,795,05176,690,00002,387,968
8Jul 10, 2023 03:229,267103,080,90674,917,0001,997,0002,260,992
9Jul 10, 2023 03:229,270143,613,70676,940,36002,265,088
10Jul 10, 2023 03:229,382138,536,56377,873,26802,265,088
11Jul 10, 2023 03:229,545158,021,22979,222,10702,260,992
12Jul 10, 2023 03:229,568105,072,57778,412,0001,005,0002,260,992
13Jul 10, 2023 03:2210,166107,395,94982,367,0002,008,0002,519,040
14Jul 10, 2023 03:2210,189114,834,49683,563,0001,006,0002,260,992
15Jul 10, 2023 03:2210,465118,926,22185,865,000998,0002,260,992