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 listMar 30, 2024 15:50Drew GarciaDrew GarciaScore: 79,028Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 30, 2024 14:4778,780724,763,593653,874,53502,195,456
2Mar 30, 2024 14:4778,898728,275,944654,851,54002,314,240
3Mar 30, 2024 15:5079,027716,203,368655,925,68202,310,144
4Mar 30, 2024 15:5079,028725,332,210655,932,04302,191,360
5Mar 30, 2024 14:4779,042717,269,248656,049,94902,199,552
6Mar 30, 2024 15:5079,096719,466,470656,497,04602,318,336