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 listJan 9, 2023 09:31unsatcoreunsatcoreScore: 53,691Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2023 09:3247,104460,153,266390,966,63902,285,568
2Jan 9, 2023 09:3247,120457,896,025391,097,96502,289,664
3Jan 9, 2023 09:3247,188452,691,450391,662,01102,281,472
4Jan 9, 2023 09:3153,691501,765,685445,633,18602,281,472
5Jan 9, 2023 09:3153,696516,567,613445,676,21902,289,664
6Jan 9, 2023 09:3153,701503,578,922445,714,93402,281,472