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 8, 2023 10:56matsuoka-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 8, 2023 10:5600000Error: expected "53692431605933084 ", got "53692406005933084 "stderr
2Dec 8, 2023 10:5600000Error: expected "53690477919921294 ", got "53690477919665294 "stderr
3Dec 8, 2023 10:5700000Error: expected "53688539832463684 ", got "53688539576463684 "stderr
4Dec 8, 2023 10:577,320129,421,89860,759,57402,248,704
5Dec 8, 2023 10:577,337123,598,99860,894,18302,236,416
6Dec 8, 2023 10:577,380112,215,24261,251,64402,244,608
7Dec 8, 2023 10:577,415122,127,40461,547,73102,224,128
8Dec 8, 2023 10:577,426132,689,93261,637,13302,240,512
9Dec 8, 2023 10:577,810131,792,74964,825,29302,240,512