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:28Robert BurkeRobert BurkeScore: 8,503Success
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:288,48692,697,71769,428,0001,006,0002,277,376
2Jul 20, 2022 16:288,48995,190,34769,456,0001,006,0002,277,376
3Jul 20, 2022 16:288,49197,220,10070,476,00002,277,376
4Jul 20, 2022 16:288,494104,654,64369,494,0001,007,0002,510,848
5Jul 20, 2022 16:288,49591,391,20669,504,0001,007,0002,433,024
6Jul 20, 2022 16:288,49793,769,84970,528,00002,433,024
7Jul 20, 2022 16:288,49895,886,67770,533,00002,539,520
8Jul 20, 2022 16:288,50395,276,37169,571,0001,008,0002,437,120
9Jul 20, 2022 16:288,506102,254,97769,595,0001,008,0002,424,832
10Jul 20, 2022 16:288,511100,322,31570,644,00002,539,520
11Jul 20, 2022 16:288,51793,025,66668,704,0001,991,0002,277,376
12Jul 20, 2022 16:288,58594,793,92770,250,0001,003,0002,424,832
13Jul 20, 2022 16:288,787138,443,38972,928,72002,179,072
14Jul 20, 2022 16:288,801132,736,83173,050,96402,179,072
15Jul 20, 2022 16:288,811140,681,33573,127,95602,297,856