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 31, 2022 03:39Robert BurkeRobert BurkeScore: 8,153Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 03:398,05793,723,10766,869,00002,420,736
2Jul 31, 2022 03:398,06087,160,98764,904,0001,997,0002,424,832
3Jul 31, 2022 03:398,06691,579,13965,945,000999,0002,277,376
4Jul 31, 2022 03:398,13592,410,12766,510,0001,007,0002,428,928
5Jul 31, 2022 03:398,137100,562,46967,534,00002,433,024
6Jul 31, 2022 03:398,14495,387,62866,585,0001,008,0002,277,376
7Jul 31, 2022 03:398,14593,565,42966,598,0001,009,0002,539,520
8Jul 31, 2022 03:398,15394,212,28067,668,00002,277,376
9Jul 31, 2022 03:398,16892,049,04367,796,00002,510,848
10Jul 31, 2022 03:398,17096,716,21865,816,0001,994,0002,433,024
11Jul 31, 2022 03:398,17690,777,37066,863,000997,0002,510,848
12Jul 31, 2022 03:398,21189,356,96366,145,0002,004,0002,277,376
13Jul 31, 2022 03:398,601135,352,20571,386,52402,174,976
14Jul 31, 2022 03:398,615130,948,10271,504,21002,179,072
15Jul 31, 2022 03:398,624135,360,25171,577,95302,297,856