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,19192,893,37366,989,000999,0002,416,640
2Jul 15, 2022 00:028,20095,187,50067,062,0001,000,0002,269,184
3Jul 15, 2022 00:028,20190,735,74267,066,0001,000,0002,527,232
4Jul 15, 2022 00:028,20288,612,65667,074,0001,001,0002,510,848
5Jul 15, 2022 00:028,20487,825,18467,096,0001,001,0002,531,328
6Jul 15, 2022 00:028,204102,867,93967,095,0001,001,0002,531,328
7Jul 15, 2022 00:028,20489,254,71667,092,0001,001,0002,420,736
8Jul 15, 2022 00:028,21589,491,71866,176,0002,005,0002,531,328
9Jul 15, 2022 00:028,21693,850,99867,192,0001,002,0002,531,328
10Jul 15, 2022 00:028,21687,976,77567,192,0001,002,0002,510,848
11Jul 15, 2022 00:028,22392,027,30867,246,0001,003,0002,428,928
12Jul 15, 2022 00:028,22690,859,92566,267,0002,008,0002,420,736
13Jul 15, 2022 00:028,803127,437,62173,062,38802,174,976
14Jul 15, 2022 00:028,820123,329,40373,204,58902,179,072
15Jul 15, 2022 00:028,828138,186,39773,275,99702,301,952