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 listDec 14, 2023 21:36Franek KortaFranek KortaScore: 77,384Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2023 21:3677,381697,451,931642,262,48702,301,952
2Dec 14, 2023 22:0377,382704,356,956642,271,32302,179,072
3Dec 14, 2023 22:0377,383699,256,710642,280,16702,170,880
4Dec 14, 2023 21:3677,384698,828,844642,286,45102,183,168
5Dec 14, 2023 22:0377,400699,459,954642,421,77302,179,072
6Dec 14, 2023 21:3677,462701,385,613642,937,36302,174,976