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 listOct 5, 2023 11:56Asset MalikAsset MalikScore: 351,898Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2023 11:56351,1882,983,415,3582,914,862,72902,187,264
2Oct 5, 2023 11:29351,3642,987,546,9492,916,320,32902,191,360
3Oct 5, 2023 11:29351,5072,979,373,9602,917,505,70502,187,264
4Oct 5, 2023 11:29351,8982,977,852,6342,920,752,82402,187,264
5Oct 5, 2023 11:56353,4853,022,323,9662,933,928,01402,273,280
6Oct 5, 2023 11:56355,0493,019,821,0562,946,906,91802,187,264