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 listNov 8, 2023 10:48Robert BurkeRobert BurkeScore: 7,705Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2023 10:487,62985,182,73663,321,00002,424,832
2Nov 8, 2023 10:487,63087,480,90462,324,0001,005,0002,277,376
3Nov 8, 2023 10:487,65888,382,36263,560,00002,428,928
4Nov 8, 2023 10:487,66591,518,86563,617,00002,420,736
5Nov 8, 2023 10:487,66991,204,70962,642,0001,010,0002,424,832
6Nov 8, 2023 10:487,69086,999,91161,831,0001,994,0002,539,520
7Nov 8, 2023 10:487,70585,597,12061,954,0001,998,0002,539,520
8Nov 8, 2023 10:487,70589,149,80662,954,000999,0002,277,376
9Nov 8, 2023 10:487,70683,813,60662,961,000999,0002,273,280
10Nov 8, 2023 10:487,71198,124,68663,005,0001,000,0002,277,376
11Nov 8, 2023 10:487,72488,354,35763,109,0001,001,0002,424,832
12Nov 8, 2023 10:487,74289,727,53462,254,0002,008,0002,433,024
13Nov 8, 2023 10:487,930129,312,11365,818,61402,301,952
14Nov 8, 2023 10:487,939125,723,78065,893,46102,174,976
15Nov 8, 2023 10:487,951125,121,74965,992,18902,293,760