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 listDec 4, 2023 04:07matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 4, 2023 04:0700000Error: expected "53690785222499039 ", got "53690759622499039 "stderr
2Dec 4, 2023 04:0800000Error: expected "53687445842396439 ", got "53687394642396439 "stderr
3Dec 4, 2023 04:087,616122,422,61463,209,49002,236,416
4Dec 4, 2023 04:087,651117,189,13363,501,07502,236,416
5Dec 4, 2023 04:087,839138,940,50565,063,46402,240,512