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 listOct 8, 2023 12:46AmanAmanScore: 454,893Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 8, 2023 12:47454,8583,833,243,5803,775,324,98102,240,512
2Oct 8, 2023 12:47454,8653,843,325,7723,775,378,96602,240,512
3Oct 8, 2023 12:46454,8843,844,531,0073,775,536,24502,256,896
4Oct 8, 2023 12:46454,8933,844,552,6593,775,609,96502,236,416
5Oct 8, 2023 12:46456,5043,860,656,6653,788,983,37602,240,512
6Oct 8, 2023 12:47456,5883,873,195,4633,789,682,61102,236,416