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 listDec 28, 2022 17:22Bernard TeoBernard TeoScore: 7,569Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 17:227,324124,855,32560,787,98602,265,088
2Dec 28, 2022 17:227,328120,134,91760,824,91802,273,280
3Dec 28, 2022 17:227,330117,660,45960,842,23002,265,088
4Dec 28, 2022 17:227,56390,315,06961,777,000996,0002,387,968
5Dec 28, 2022 17:227,56686,440,15861,805,000996,0002,506,752
6Dec 28, 2022 17:227,56687,567,46961,805,000996,0002,383,872
7Dec 28, 2022 17:227,56891,164,06761,819,000997,0002,383,872
8Dec 28, 2022 17:227,56986,661,76061,823,000997,0002,387,968
9Dec 28, 2022 17:227,57088,644,52861,830,000997,0002,392,064
10Dec 28, 2022 17:227,57191,385,17260,848,0001,995,0002,273,280
11Dec 28, 2022 17:227,57287,469,07260,850,0001,995,0002,273,280
12Dec 28, 2022 17:227,57386,432,40760,860,0001,995,0002,273,280
13Dec 28, 2022 17:227,57486,309,97861,864,000997,0002,273,280
14Dec 28, 2022 17:227,57589,844,83360,877,0001,995,0002,273,280
15Dec 28, 2022 17:227,58187,143,87260,925,0001,997,0002,392,064