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 listMay 24, 2021 07:23Andrei GrazhdankovAndrei GrazhdankovScore: 56,489Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 24, 2021 07:2756,470531,435,637468,704,96102,228,224
2May 24, 2021 07:2356,474520,205,499468,736,60102,228,224
3May 24, 2021 07:2756,484524,558,927468,814,88402,215,936
4May 24, 2021 07:2756,489532,184,721468,857,32502,224,128
5May 24, 2021 07:2356,501528,084,498468,959,68702,232,320
6May 24, 2021 07:2356,521521,436,745469,123,17002,220,032