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 listMay 25, 2024 11:13GraceGraceScore: 9,503Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 11:139,475105,993,95578,640,00002,285,568
2May 25, 2024 11:139,476107,079,50278,647,00002,277,376
3May 25, 2024 11:139,487104,330,52777,749,000996,0002,285,568
4May 25, 2024 11:139,492105,025,75076,792,0001,994,0002,285,568
5May 25, 2024 11:139,495103,448,83276,812,0001,995,0002,285,568
6May 25, 2024 11:139,501103,865,44076,863,0001,996,0002,375,680
7May 25, 2024 11:139,501112,235,44176,863,0001,996,0002,269,184
8May 25, 2024 11:139,503100,722,18176,879,0001,996,0002,285,568
9May 25, 2024 11:139,517105,005,98676,992,0001,999,0002,285,568
10May 25, 2024 11:139,746148,597,75780,891,66002,256,896
11May 25, 2024 11:139,802146,906,94981,355,45502,297,856
12May 25, 2024 11:139,888157,156,75282,073,60802,256,896
13May 25, 2024 11:1311,861121,524,35096,434,0002,009,0002,523,136
14May 25, 2024 11:1311,865124,979,38197,475,0001,004,0002,285,568
15May 25, 2024 11:1311,885130,055,84397,641,0001,006,0002,265,088