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 listDec 8, 2024 14:50MatthiasMatthiasScore: 8,540Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2024 14:498,52395,639,21069,742,000996,0002,265,088
2Dec 8, 2024 14:508,52393,952,53268,750,0001,992,0002,285,568
3Dec 8, 2024 14:508,53395,652,02168,826,0001,994,0002,523,136
4Dec 8, 2024 14:498,53697,184,07968,850,0001,995,0002,285,568
5Dec 8, 2024 14:508,53796,277,92868,862,0001,996,0002,285,568
6Dec 8, 2024 14:508,53797,879,70968,861,0001,995,0002,519,040
7Dec 8, 2024 14:508,53797,704,42968,863,0001,996,0002,269,184
8Dec 8, 2024 14:498,539100,661,65969,874,000998,0002,285,568
9Dec 8, 2024 14:498,53993,962,13968,877,0001,996,0002,269,184
10Dec 8, 2024 14:508,54096,527,82568,889,0001,996,0002,285,568
11Dec 8, 2024 14:508,54398,415,48668,913,0001,997,0002,285,568
12Dec 8, 2024 14:508,54794,946,05568,943,0001,998,0002,531,328
13Dec 8, 2024 14:508,54896,338,80969,953,000999,0002,281,472
14Dec 8, 2024 14:508,55193,780,56168,971,0001,999,0002,531,328
15Dec 8, 2024 14:508,56097,781,54670,051,0001,000,0002,379,776
16Dec 8, 2024 14:508,67094,747,02969,966,0001,999,0002,523,136
17Dec 8, 2024 14:498,67099,451,57769,960,0001,998,0002,285,568
18Dec 8, 2024 14:498,696100,726,78971,175,0001,002,0002,269,184