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 30, 2022 18:19Jack FrigaardJack FrigaardScore: 5,770Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 18:205,735109,940,66247,603,32302,244,608
2Dec 30, 2022 18:205,752108,066,35247,743,42702,240,512
3Dec 30, 2022 18:195,756119,953,60747,771,74902,244,608
4Dec 30, 2022 18:195,770120,513,68547,894,29802,236,416
5Dec 30, 2022 18:195,783106,462,73848,002,86302,244,608
6Dec 30, 2022 18:205,832122,742,93648,404,28102,232,320