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 25, 2023 03:59Gubin DmitryGubin DmitryScore: 75,553Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 25, 2023 03:5975,545694,771,350627,022,89202,191,360
2Jun 25, 2023 03:5975,547704,223,201627,038,13502,183,168
3Jun 25, 2023 03:5975,551694,182,233627,070,72702,195,456
4Jun 25, 2023 03:5975,553698,322,172627,091,12502,187,264
5Jun 25, 2023 03:5975,555694,287,027627,105,84302,191,360
6Jun 25, 2023 03:5975,558703,938,586627,132,18002,183,168