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:22Robert BurkeRobert BurkeScore: 8,512Success
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:228,44196,188,73168,058,0002,001,0002,428,928
2Jul 20, 2022 16:228,46693,940,14368,258,0002,007,0002,428,928
3Jul 20, 2022 16:228,48591,935,07370,427,00002,433,024
4Jul 20, 2022 16:228,49688,110,04670,517,00002,437,120
5Jul 20, 2022 16:228,503102,720,33969,570,0001,008,0002,424,832
6Jul 20, 2022 16:228,50596,680,05570,593,00002,420,736
7Jul 20, 2022 16:228,50899,790,66270,616,00002,277,376
8Jul 20, 2022 16:228,512100,980,20570,650,00002,277,376
9Jul 20, 2022 16:228,51495,426,99969,655,0001,009,0002,510,848
10Jul 20, 2022 16:228,52798,563,55769,781,000996,0002,433,024
11Jul 20, 2022 16:228,54591,035,98369,927,000998,0002,514,944
12Jul 20, 2022 16:228,59291,058,18271,315,00002,428,928
13Jul 20, 2022 16:2210,381151,228,41586,159,56002,297,856
14Jul 20, 2022 16:2210,408138,479,99186,386,69202,174,976
15Jul 20, 2022 16:2210,423143,670,00286,507,19802,170,880