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 listAug 31, 2023 05:34matsuoka-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
1Aug 31, 2023 05:3400000Error: expected "53688276607934215 ", got "53688251007934215 "stderr
2Aug 31, 2023 05:3800000Error: expected "53687871639039130 ", got "53687820439039130 "stderr
3Aug 31, 2023 05:3900000Error: expected "53680938350717422 ", got "53680912750717422 "stderr
4Aug 31, 2023 05:357,326116,690,20360,807,07802,301,952
5Aug 31, 2023 05:347,329124,817,80160,831,82202,301,952
6Aug 31, 2023 05:357,338119,797,82060,908,93102,306,048
7Aug 31, 2023 05:397,351116,678,51861,015,91202,310,144
8Aug 31, 2023 05:357,362124,308,96961,104,91502,310,144
9Aug 31, 2023 05:347,391129,311,34061,345,24002,301,952
10Aug 31, 2023 05:397,405121,296,77561,461,77502,179,072
11Aug 31, 2023 05:397,414125,302,11861,534,35502,301,952
12Aug 31, 2023 05:347,429115,528,18561,660,79602,301,952