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 00:02Robert BurkeRobert BurkeScore: 8,215Success
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 00:028,19592,392,35766,021,0002,000,0002,531,328
2Jul 15, 2022 00:028,20087,967,93567,062,0001,000,0002,269,184
3Jul 15, 2022 00:028,20394,611,13267,082,0001,001,0002,527,232
4Jul 15, 2022 00:028,20493,795,87867,095,0001,001,0002,416,640
5Jul 15, 2022 00:028,20588,523,83466,096,0002,002,0002,416,640
6Jul 15, 2022 00:028,20791,964,89166,117,0002,003,0002,527,232
7Jul 15, 2022 00:028,21489,780,74466,174,0002,005,0002,514,944
8Jul 15, 2022 00:028,21588,658,88167,185,0001,002,0002,531,328
9Jul 15, 2022 00:028,21795,524,12867,197,0001,002,0002,527,232
10Jul 15, 2022 00:028,22991,011,26867,295,0001,004,0002,531,328
11Jul 15, 2022 00:028,23093,222,39968,308,00002,527,232
12Jul 15, 2022 00:028,23290,748,99968,324,00002,412,544
13Jul 15, 2022 00:028,823125,576,90573,229,04002,293,760
14Jul 15, 2022 00:028,831141,437,55973,297,61702,174,976
15Jul 15, 2022 00:028,920129,972,00074,035,04402,174,976