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 listSep 6, 2022 16:36Bernard TeoBernard TeoScore: 10,220Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 6, 2022 16:3610,203109,855,62582,690,0001,992,0002,396,160
2Sep 6, 2022 16:3610,210106,143,40182,752,0001,994,0002,392,064
3Sep 6, 2022 16:3610,216110,563,91982,798,0001,995,0002,400,256
4Sep 6, 2022 16:3610,217109,107,54683,800,000997,0002,396,160
5Sep 6, 2022 16:3610,217117,038,01783,804,000997,0002,404,352
6Sep 6, 2022 16:3610,217108,514,82782,806,0001,995,0002,404,352
7Sep 6, 2022 16:3610,218110,319,26182,816,0001,995,0002,392,064
8Sep 6, 2022 16:3610,220112,531,33983,825,000997,0002,396,160
9Sep 6, 2022 16:3610,220110,086,64482,828,0001,995,0002,273,280
10Sep 6, 2022 16:3610,226109,232,42383,877,000998,0002,273,280
11Sep 6, 2022 16:3610,226105,688,96383,877,000998,0002,404,352
12Sep 6, 2022 16:3610,230108,387,65982,916,0001,997,0002,273,280
13Sep 6, 2022 16:3611,638171,157,94496,593,09802,277,376
14Sep 6, 2022 16:3611,644155,462,96896,645,69202,273,280
15Sep 6, 2022 16:3611,644160,798,47496,641,78802,285,568