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 listJun 25, 2023 09:16Gubin DmitryGubin DmitryScore: 93,491Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 25, 2023 09:1672,537656,024,458602,060,42602,195,456
2Jun 25, 2023 09:1672,544668,694,193602,116,38202,187,264
3Jun 25, 2023 09:1672,544661,013,211602,112,75102,187,264
4Jun 25, 2023 09:1693,491846,368,535775,979,06702,191,360
5Jun 25, 2023 09:1693,513837,247,076776,159,81302,195,456
6Jun 25, 2023 09:1693,514845,895,845776,162,66902,191,360