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 14, 2022 17:29Bernard TeoBernard TeoScore: 6,829Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 14, 2022 17:296,81182,895,17555,522,0001,009,0002,281,472
2Sep 14, 2022 17:296,81384,534,89556,549,00002,273,280
3Sep 14, 2022 17:296,81375,700,55455,539,0001,009,0002,273,280
4Sep 14, 2022 17:296,82087,328,54355,593,0001,010,0002,400,256
5Sep 14, 2022 17:296,82281,741,12056,626,00002,404,352
6Sep 14, 2022 17:296,82581,115,59756,651,00002,273,280
7Sep 14, 2022 17:296,82582,132,24755,639,0001,011,0002,273,280
8Sep 14, 2022 17:296,82991,727,76956,682,00002,273,280
9Sep 14, 2022 17:296,84481,480,82256,806,00002,273,280
10Sep 14, 2022 17:296,84586,302,41855,815,000996,0002,273,280
11Sep 14, 2022 17:296,84682,976,37354,829,0001,993,0002,273,280
12Sep 14, 2022 17:296,84785,645,41155,831,000996,0002,396,160
13Sep 14, 2022 17:296,938118,758,19257,588,30702,281,472
14Sep 14, 2022 17:296,938126,411,79357,583,15002,281,472
15Sep 14, 2022 17:296,939112,054,66957,593,31702,281,472