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 20, 2022 16:24Robert BurkeRobert BurkeScore: 8,158Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2022 16:248,12988,850,17666,463,0001,007,0002,277,376
2Jul 20, 2022 16:248,12989,027,05767,471,00002,277,376
3Jul 20, 2022 16:248,13188,578,08967,487,00002,510,848
4Jul 20, 2022 16:248,15093,889,99566,634,0001,009,0002,539,520
5Jul 20, 2022 16:248,15195,208,68967,652,00002,277,376
6Jul 20, 2022 16:248,153104,591,47867,668,00002,428,928
7Jul 20, 2022 16:248,15490,566,33367,675,00002,277,376
8Jul 20, 2022 16:248,15892,334,86567,711,00002,428,928
9Jul 20, 2022 16:248,170102,458,81465,817,0001,994,0002,539,520
10Jul 20, 2022 16:248,17198,165,79966,823,000997,0002,277,376
11Jul 20, 2022 16:248,17492,555,26865,850,0001,995,0002,535,424
12Jul 20, 2022 16:248,17592,395,13766,858,000997,0002,277,376
13Jul 20, 2022 16:249,738137,616,09680,823,64202,293,760
14Jul 20, 2022 16:249,738132,775,08380,826,99702,179,072
15Jul 20, 2022 16:249,760139,697,03481,008,09702,183,168