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 15:11Robert BurkeRobert BurkeScore: 7,989Success
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 15:117,93193,274,81564,830,000997,0002,269,184
2Nov 8, 2023 15:117,93392,560,46063,849,0001,995,0002,289,664
3Nov 8, 2023 15:117,93490,455,88563,856,0001,995,0002,281,472
4Nov 8, 2023 15:117,96389,902,44164,094,0002,002,0002,289,664
5Nov 8, 2023 15:117,96590,758,66564,104,0002,003,0002,289,664
6Nov 8, 2023 15:117,97688,957,41964,193,0002,006,0002,277,376
7Nov 8, 2023 15:117,98694,387,75766,281,00002,289,664
8Nov 8, 2023 15:117,98987,864,45264,299,0002,009,0002,281,472
9Nov 8, 2023 15:117,99990,261,06065,389,0001,005,0002,289,664
10Nov 8, 2023 15:118,00791,014,65865,451,0001,006,0002,273,280
11Nov 8, 2023 15:118,04989,217,80965,808,000997,0002,289,664
12Nov 8, 2023 15:118,05693,431,79165,865,000997,0002,289,664
13Nov 8, 2023 15:118,074134,348,63967,017,57302,285,568
14Nov 8, 2023 15:118,115128,038,56767,358,10202,289,664
15Nov 8, 2023 15:118,126138,794,31967,448,01302,281,472