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 11, 2023 03:16sliceteamsliceteamScore: 10,377Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2023 03:169,799106,454,70981,333,00002,310,144
2Dec 11, 2023 03:169,815104,171,84981,466,00002,482,176
3Dec 11, 2023 03:169,931105,220,78282,428,00002,314,240
4Dec 11, 2023 03:1610,337114,296,44184,801,000997,0002,461,696
5Dec 11, 2023 03:1610,344115,451,84783,861,0001,996,0002,461,696
6Dec 11, 2023 03:1610,363111,329,77485,016,0001,000,0002,490,368
7Dec 11, 2023 03:1610,375106,796,72584,113,0002,002,0002,379,776
8Dec 11, 2023 03:1610,377107,521,12384,129,0002,003,0002,510,848
9Dec 11, 2023 03:1610,386113,571,00385,199,0001,002,0002,506,752
10Dec 11, 2023 03:1610,628109,330,55586,208,0002,004,0002,441,216
11Dec 11, 2023 03:1610,808158,044,78989,707,17702,285,568
12Dec 11, 2023 03:1610,828115,126,35689,874,00002,449,408
13Dec 11, 2023 03:1610,857121,044,36689,108,0001,001,0002,437,120
14Dec 11, 2023 03:1610,899149,700,82090,457,84902,252,800
15Dec 11, 2023 03:1611,231144,032,71893,218,99802,252,800