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 listJan 1, 2023 16:31Hal FHal FScore: 6,737Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 16:316,67078,243,55253,344,0002,013,0002,273,280
2Jan 1, 2023 16:316,67282,327,34452,355,0003,020,0002,277,376
3Jan 1, 2023 16:316,68383,912,80853,450,0002,016,0002,273,280
4Jan 1, 2023 16:316,68477,938,98853,462,0002,017,0002,273,280
5Jan 1, 2023 16:316,70282,844,47955,629,00002,265,088
6Jan 1, 2023 16:316,72383,268,92952,812,0002,989,0002,265,088
7Jan 1, 2023 16:316,73276,923,20652,881,0002,993,0002,531,328
8Jan 1, 2023 16:316,73779,982,07153,919,0001,997,0002,273,280
9Jan 1, 2023 16:316,73779,825,19752,918,0002,995,0002,285,568
10Jan 1, 2023 16:316,76779,621,65853,160,0003,009,0002,482,176
11Jan 1, 2023 16:316,81486,133,93553,526,0003,029,0002,260,992
12Jan 1, 2023 16:316,91880,752,02554,398,0003,022,0002,514,944
13Jan 1, 2023 16:317,104126,478,07058,966,13202,277,376
14Jan 1, 2023 16:317,467149,296,15761,972,17202,277,376
15Jan 1, 2023 16:317,537126,444,10962,559,02102,273,280