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 3, 2023 00:07dzaimadzaimaScore: 12,060Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 00:0712,017123,538,18799,741,00002,285,568
2Jul 3, 2023 00:0712,022121,925,98897,786,0001,995,0002,289,664
3Jul 3, 2023 00:0712,038124,450,84797,920,0001,998,0002,289,664
4Jul 3, 2023 00:0712,043122,435,85797,955,0001,999,0002,269,184
5Jul 3, 2023 00:0712,046123,628,46097,986,0001,999,0002,289,664
6Jul 3, 2023 00:0712,046122,592,21498,986,000999,0002,269,184
7Jul 3, 2023 00:0712,048129,643,26698,996,000999,0002,277,376
8Jul 3, 2023 00:0712,060128,837,77899,101,0001,001,0002,265,088
9Jul 3, 2023 00:0712,062122,252,14898,109,0002,002,0002,289,664
10Jul 3, 2023 00:0712,103124,220,78999,453,0001,004,0002,273,280
11Jul 3, 2023 00:0712,114129,412,16599,550,000995,0002,289,664
12Jul 3, 2023 00:0712,134126,693,56899,719,000997,0002,273,280
13Jul 3, 2023 00:0713,338187,611,213110,708,12202,265,088
14Jul 3, 2023 00:0713,351192,177,212110,812,14602,269,184
15Jul 3, 2023 00:0713,354182,349,514110,839,20502,273,280