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 27, 2021 23:09gchebanovgchebanovScore: 558,911Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 23:09558,6064,706,400,0814,636,426,25002,228,224
2Jun 27, 2021 23:09558,9114,725,660,7444,638,961,13502,232,320
3Jun 27, 2021 23:09563,3514,742,370,0584,675,814,00402,220,032