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 23, 2022 10:02Robert BurkeRobert BurkeScore: 8,248Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2022 10:028,15092,775,94166,640,0001,009,0002,433,024
2Jul 23, 2022 10:028,17386,316,16066,835,000997,0002,433,024
3Jul 23, 2022 10:028,17996,784,27366,889,000998,0002,277,376
4Jul 23, 2022 10:028,22991,407,07666,291,0002,008,0002,539,520
5Jul 23, 2022 10:028,24294,967,85468,412,00002,433,024
6Jul 23, 2022 10:028,24687,073,28767,436,0001,006,0002,510,848
7Jul 23, 2022 10:028,24789,368,98468,453,00002,539,520
8Jul 23, 2022 10:028,24889,662,41768,460,00002,437,120
9Jul 23, 2022 10:028,25493,011,68267,499,0001,007,0002,277,376
10Jul 23, 2022 10:028,25994,930,97967,540,0001,008,0002,277,376
11Jul 23, 2022 10:028,26793,918,51267,605,0001,009,0002,277,376
12Jul 23, 2022 10:028,29697,680,94067,862,000997,0002,277,376
13Jul 23, 2022 10:028,715133,953,26272,332,11002,183,168
14Jul 23, 2022 10:028,716132,075,78272,343,23902,301,952
15Jul 23, 2022 10:028,729137,561,84172,449,05502,183,168