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 22, 2025 21:15Miriam VellacottMiriam VellacottScore: 195,295Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 22, 2025 21:15195,1971,643,253,9051,553,175,00066,964,0002,359,296
2Jan 22, 2025 21:44195,2411,648,175,7471,557,518,00062,980,0002,289,664
3Jan 22, 2025 21:44195,2501,643,970,4541,538,598,00081,978,0002,289,664
4Jan 22, 2025 21:15195,2561,644,986,0201,531,646,00088,979,0002,351,104
5Jan 22, 2025 21:15195,2591,652,712,4531,537,671,00082,982,0002,371,584
6Jan 22, 2025 21:15195,2881,654,294,2161,545,939,00074,948,0002,289,664
7Jan 22, 2025 21:15195,2951,650,304,5571,569,985,00050,967,0002,281,472
8Jan 22, 2025 21:44195,3241,646,492,2171,552,221,00068,965,0002,289,664
9Jan 22, 2025 21:15195,3261,649,495,7771,553,238,00067,966,0002,363,392
10Jan 22, 2025 21:15195,4111,645,843,3601,554,956,00066,955,0002,285,568
11Jan 22, 2025 21:15195,4801,647,874,5821,560,500,00061,980,0002,289,664
12Jan 22, 2025 21:15195,5401,652,421,5741,547,030,00075,952,0002,367,488