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:45Franek KortaFranek KortaScore: 73,952Success
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:4673,918671,882,042613,516,56902,293,760
2Dec 14, 2023 21:4673,926786,026,056613,584,36802,166,784
3Dec 14, 2023 21:4673,943678,320,278613,729,33302,289,664
4Dec 14, 2023 21:4573,952675,094,855613,801,63402,297,856
5Dec 14, 2023 21:4573,954663,922,175613,816,03102,281,472
6Dec 14, 2023 21:4574,023667,980,898614,388,31002,289,664