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 27, 2021 10:55Andrei GrazhdankovAndrei GrazhdankovScore: 56,501Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2021 10:5556,444510,655,657468,482,20202,215,936
2May 27, 2021 10:5556,487511,800,576468,840,88902,256,896
3May 27, 2021 10:5556,494511,601,485468,899,93802,224,128
4May 27, 2021 10:5556,501541,796,324468,954,70302,228,224
5May 27, 2021 10:5556,505526,013,021468,991,74002,236,416
6May 27, 2021 10:5556,516515,760,508469,086,17802,228,224