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 listOct 22, 2023 22:57sliceteamsliceteamScore: 8,587Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 22, 2023 22:578,53395,565,40069,830,000997,0002,273,280
2Oct 22, 2023 22:578,53796,614,70369,863,000998,0002,396,160
3Oct 22, 2023 22:578,55299,711,16068,984,0001,999,0002,273,280
4Oct 22, 2023 22:578,563135,823,59471,074,44002,281,472
5Oct 22, 2023 22:578,56996,064,09570,124,0001,001,0002,400,256
6Oct 22, 2023 22:578,57994,062,99069,200,0002,005,0002,273,280
7Oct 22, 2023 22:578,581104,934,73870,219,0001,003,0002,396,160
8Oct 22, 2023 22:578,587101,482,50171,269,00002,273,280
9Oct 22, 2023 22:578,59391,915,59670,317,0001,004,0002,273,280
10Oct 22, 2023 22:578,59693,169,31671,345,00002,273,280
11Oct 22, 2023 22:578,60393,689,00071,407,00002,392,064
12Oct 22, 2023 22:578,61997,049,53670,532,0001,007,0002,400,256
13Oct 22, 2023 22:578,64997,949,48669,793,0001,994,0002,400,256
14Oct 22, 2023 22:578,698134,297,70372,189,31602,277,376
15Oct 22, 2023 22:578,760132,822,09472,710,06302,281,472