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 21, 2023 15:57Sergey SlotinSergey SlotinScore: 16,322Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 15:5715,997198,614,479132,771,39102,289,664
2Jul 21, 2023 15:5716,014192,758,632132,914,35402,285,568
3Jul 21, 2023 15:5716,040205,636,345133,131,52902,289,664
4Jul 21, 2023 15:5716,162160,334,474132,142,0002,002,0002,277,376
5Jul 21, 2023 15:5716,186160,392,776130,332,0004,010,0002,273,280
6Jul 21, 2023 15:5716,199163,398,932133,452,0001,003,0002,273,280
7Jul 21, 2023 15:5716,322158,913,144130,454,0005,017,0002,273,280
8Jul 21, 2023 15:5716,362159,865,255133,807,0001,997,0002,273,280
9Jul 21, 2023 15:5716,396160,155,854133,085,0003,001,0002,498,560
10Jul 21, 2023 15:5716,397158,923,922134,092,0002,001,0002,510,848
11Jul 21, 2023 15:5716,407157,181,828133,175,0003,003,0002,277,376
12Jul 21, 2023 15:5716,429162,071,153133,351,0003,007,0002,506,752