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 17:25Bernard TeoBernard TeoScore: 8,930Success
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 17:258,89198,664,17272,799,000997,0002,273,280
2Sep 6, 2022 17:258,90496,865,88371,903,0001,997,0002,404,352
3Sep 6, 2022 17:258,90997,443,06072,931,0001,012,0002,273,280
4Sep 6, 2022 17:258,91493,997,24271,990,0001,999,0002,273,280
5Sep 6, 2022 17:258,914102,180,65972,991,000999,0002,273,280
6Sep 6, 2022 17:258,91898,994,13673,016,0001,000,0002,273,280
7Sep 6, 2022 17:258,92897,908,03272,100,0002,002,0002,404,352
8Sep 6, 2022 17:258,93099,683,10773,122,0001,001,0002,273,280
9Sep 6, 2022 17:258,93599,239,96373,159,0001,002,0002,273,280
10Sep 6, 2022 17:259,180132,513,31176,196,10102,281,472
11Sep 6, 2022 17:259,248141,582,19276,755,96702,277,376
12Sep 6, 2022 17:259,256143,828,36476,826,12102,285,568
13Sep 6, 2022 17:2510,350108,602,50883,906,0001,997,0002,273,280
14Sep 6, 2022 17:2510,354109,347,34384,937,000999,0002,400,256
15Sep 6, 2022 17:2510,373118,420,30085,099,0001,001,0002,396,160