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 7, 2023 08:39matsuoka-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 7, 2023 08:3900000Error: expected "53681912053814610 ", got "53681912053812050 "stderr
2Dec 7, 2023 08:3900000Error: expected "53688251877965432 ", got "53688251877939832 "stderr
3Dec 7, 2023 08:407,341116,894,01860,932,64502,236,416
4Dec 7, 2023 08:407,393128,037,91861,362,86802,236,416
5Dec 7, 2023 08:407,422129,160,94461,598,55402,240,512