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 listJan 3, 2023 21:30Hal FHal FScore: 6,900Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 21:306,74879,432,20554,006,0002,000,0002,473,984
2Jan 3, 2023 21:306,74876,190,72853,007,0003,000,0002,285,568
3Jan 3, 2023 21:306,79980,054,24153,406,0003,022,0002,285,568
4Jan 3, 2023 21:306,80379,335,24053,440,0003,024,0002,285,568
5Jan 3, 2023 21:306,82083,758,23554,581,0002,021,0002,285,568
6Jan 3, 2023 21:306,84184,897,88053,789,0002,988,0002,478,080
7Jan 3, 2023 21:306,87485,794,73154,055,0003,003,0002,285,568
8Jan 3, 2023 21:306,90081,974,66955,264,0002,009,0002,285,568
9Jan 3, 2023 21:306,95082,112,21056,674,0001,012,0002,478,080
10Jan 3, 2023 21:306,96880,790,74956,822,0001,014,0002,490,368
11Jan 3, 2023 21:306,98178,839,98054,949,0002,997,0002,285,568
12Jan 3, 2023 21:307,498115,389,30462,231,30902,220,032
13Jan 3, 2023 21:307,511119,302,75362,343,79502,211,840
14Jan 3, 2023 21:307,728127,186,78364,141,56702,232,320
15Jan 3, 2023 21:308,15095,684,92265,630,0002,019,0002,285,568