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 12:34GraceGraceScore: 7,204Success
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 12:347,06884,082,95157,655,0001,011,0002,277,376
2May 25, 2024 12:347,07082,562,74357,666,0001,011,0002,396,160
3May 25, 2024 12:347,08487,229,43656,807,0001,993,0002,269,184
4May 25, 2024 12:347,08486,333,33356,808,0001,993,0002,273,280
5May 25, 2024 12:347,08683,230,52456,824,0001,993,0002,285,568
6May 25, 2024 12:347,08787,249,93957,822,000996,0002,285,568
7May 25, 2024 12:347,08783,868,58456,825,0001,993,0002,285,568
8May 25, 2024 12:347,20485,628,21158,798,000996,0002,285,568
9May 25, 2024 12:347,242124,571,15660,111,08202,285,568
10May 25, 2024 12:347,245138,992,23860,131,53802,252,800
11May 25, 2024 12:347,246113,634,30060,145,50902,281,472
12May 25, 2024 12:347,26182,493,84458,259,0002,008,0002,285,568
13May 25, 2024 12:348,58892,734,62870,275,0001,003,0002,273,280
14May 25, 2024 12:348,60193,101,35670,387,0001,005,0002,285,568
15May 25, 2024 12:348,66496,082,66669,916,0001,997,0002,285,568