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 15, 2022 04:19Robert 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 15, 2022 04:198,16893,044,98066,796,000996,0002,277,376
2Jul 15, 2022 04:198,17389,803,68067,839,00002,277,376
3Jul 15, 2022 04:198,20987,852,34066,128,0002,003,0002,428,928
4Jul 15, 2022 04:198,23390,356,05167,330,0001,004,0002,277,376
5Jul 15, 2022 04:198,23892,032,31066,367,0002,011,0002,433,024
6Jul 15, 2022 04:198,24389,302,80468,417,00002,539,520
7Jul 15, 2022 04:198,24694,363,96568,444,00002,510,848
8Jul 15, 2022 04:198,24890,947,83167,452,0001,006,0002,420,736
9Jul 15, 2022 04:198,25493,006,91668,510,00002,277,376
10Jul 15, 2022 04:198,25598,709,10968,513,00002,539,520
11Jul 15, 2022 04:198,25793,518,91368,532,00002,277,376
12Jul 15, 2022 04:198,26694,597,56767,600,0001,008,0002,277,376
13Jul 15, 2022 04:198,692140,681,13572,147,33002,174,976
14Jul 15, 2022 04:198,709130,961,19772,285,75202,301,952
15Jul 15, 2022 04:198,718140,550,07772,358,30902,174,976