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 listMay 9, 2024 21:47Joad NacerJoad NacerScore: 7,882Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 21:477,607132,583,21163,134,11302,277,376
2May 9, 2024 21:477,631127,258,65263,338,01702,281,472
3May 9, 2024 21:477,86089,921,36063,232,0002,007,0002,285,568
4May 9, 2024 21:477,86392,597,89063,258,0002,008,0002,260,992
5May 9, 2024 21:477,87186,776,96564,322,0001,005,0002,285,568
6May 9, 2024 21:477,87590,837,59164,354,0001,005,0002,285,568
7May 9, 2024 21:477,88085,812,97763,391,0002,012,0002,285,568
8May 9, 2024 21:477,88291,896,90965,424,00002,285,568
9May 9, 2024 21:477,944123,325,59965,937,46502,269,184
10May 9, 2024 21:478,35292,630,38268,314,0001,004,0002,285,568
11May 9, 2024 21:478,770100,531,08872,792,00002,260,992
12May 9, 2024 21:478,78998,225,61970,954,0001,998,0002,273,280
13May 9, 2024 21:478,79498,460,50172,988,00002,265,088
14May 9, 2024 21:478,80695,538,10671,091,0002,002,0002,285,568
15May 9, 2024 21:478,82295,396,22671,215,0002,006,0002,285,568