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 listNov 5, 2024 22:15Manuel PepeManuel PepeScore: 157,228Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2024 21:23156,8991,330,784,3701,198,319,000103,940,0002,326,528
2Nov 5, 2024 21:23156,9501,326,272,8291,207,705,00094,976,0002,326,528
3Nov 5, 2024 22:15156,9781,328,794,2901,217,920,00084,994,0002,490,368
4Nov 5, 2024 21:23157,0771,330,569,2491,222,754,00080,983,0002,326,528
5Nov 5, 2024 21:23157,1941,331,162,7711,205,733,00098,978,0002,326,528
6Nov 5, 2024 21:23157,1971,325,417,8701,201,757,000102,979,0002,326,528
7Nov 5, 2024 21:23157,2281,332,338,1651,206,994,00097,999,0002,326,528
8Nov 5, 2024 21:23157,4101,331,483,5461,207,543,00098,962,0002,326,528
9Nov 5, 2024 21:23157,4771,332,112,8381,214,123,00092,932,0002,326,528
10Nov 5, 2024 22:15157,5071,337,747,8601,192,372,000114,939,0002,326,528
11Nov 5, 2024 21:23157,7021,337,936,4061,210,933,00097,994,0002,326,528
12Nov 5, 2024 22:15157,8421,340,385,2311,221,154,00088,938,0002,326,528