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 listApr 10, 2024 19:27Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 19:2700000Error: expected "53680418634875535 ", got "53680418632315535 "
2Apr 10, 2024 19:2800000Error: expected "53691429476318605 ", got "53691429476062605 "
3Apr 10, 2024 19:2718,833214,948,870156,310,45502,301,952
4Apr 10, 2024 19:2718,839222,961,121156,365,93202,301,952
5Apr 10, 2024 19:2720,045245,637,140166,374,75302,256,896