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 11, 2024 14:01Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 14:0000000Error: expected "53691476493409651 ", got "53691486588814202 "stderr
2Oct 11, 2024 16:434,47663,829,59334,139,0003,012,0002,351,104
3Oct 11, 2024 16:434,47959,609,21535,165,0002,009,0002,301,952
4Oct 11, 2024 14:014,48264,759,10936,194,0001,005,0002,293,760
5Oct 11, 2024 14:014,48263,192,37834,186,0003,016,0002,297,856
6Oct 11, 2024 14:014,48358,376,78435,198,0002,011,0002,351,104
7Oct 11, 2024 16:434,49061,778,73734,242,0003,021,0002,351,104
8Oct 11, 2024 14:014,49257,069,00134,260,0003,022,0002,351,104
9Oct 11, 2024 14:014,49661,724,25134,288,0003,025,0002,351,104
10Oct 11, 2024 14:014,53358,755,71236,607,0001,016,0002,306,048
11Oct 11, 2024 14:014,53665,823,64435,616,0002,035,0002,297,856
12Oct 11, 2024 16:434,55563,781,56134,822,0002,984,0002,297,856
13Oct 11, 2024 16:434,55562,332,63634,820,0002,984,0002,351,104
14Oct 11, 2024 16:434,55564,594,80035,820,0001,990,0002,351,104
15Oct 11, 2024 14:014,55564,067,49936,813,000994,0002,351,104
16Oct 11, 2024 14:014,55564,252,79834,821,0002,984,0002,342,912
17Oct 11, 2024 14:014,55563,770,91536,815,000995,0002,297,856
18Oct 11, 2024 14:014,56062,234,53134,860,0002,988,0002,293,760
19Oct 11, 2024 14:014,61958,655,02835,313,0003,026,0002,289,664