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 14, 2022 22:46Robert BurkeRobert BurkeScore: 9,252Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2022 22:469,140146,534,24375,859,97102,277,376
2Jul 14, 2022 22:469,163138,544,22476,052,12102,285,568
3Jul 14, 2022 22:469,169141,739,67676,098,88202,281,472
4Jul 14, 2022 22:469,235108,824,82875,640,0001,008,0002,527,232
5Jul 14, 2022 22:469,250106,614,66675,776,000997,0002,514,944
6Jul 14, 2022 22:469,251105,397,45375,773,0001,010,0002,285,568
7Jul 14, 2022 22:469,252107,843,74475,791,000997,0002,285,568
8Jul 14, 2022 22:469,252106,782,51874,797,0001,994,0002,285,568
9Jul 14, 2022 22:469,254106,946,28575,814,000997,0002,269,184
10Jul 14, 2022 22:469,255103,373,10174,821,0001,995,0002,347,008
11Jul 14, 2022 22:469,255105,330,83175,823,000997,0002,285,568
12Jul 14, 2022 22:469,257103,175,20475,839,000997,0002,277,376
13Jul 14, 2022 22:469,257104,938,77274,835,0001,995,0002,285,568
14Jul 14, 2022 22:469,258103,113,94274,843,0001,995,0002,269,184
15Jul 14, 2022 22:469,260103,958,66576,855,00002,285,568