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 listJun 28, 2023 05:02AlexanderAlexanderScore: 216,542Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2023 05:02216,0401,859,320,1241,793,132,34902,244,608
2Jun 28, 2023 05:12216,3451,853,916,2141,795,662,43102,240,512
3Jun 28, 2023 05:12216,4691,870,833,6611,796,691,12202,232,320
4Jun 28, 2023 05:12216,5421,857,030,5241,797,302,17502,236,416
5Jun 28, 2023 05:02216,9461,860,472,7641,800,649,17802,240,512
6Jun 28, 2023 05:02218,0851,879,344,0311,810,102,20902,244,608