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 15, 2023 13: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 15, 2023 13:5600000Error: expected "53689486993121367 ", got "53689486990558807 "stderr
2Dec 15, 2023 13:5600000Error: expected "53682670134019948 ", got "53682667574019948 "stderr
3Dec 15, 2023 13:5700000Error: expected "53688596296590013 ", got "53688596296587453 "stderr
4Dec 15, 2023 13:586,949118,610,51557,676,28102,285,568
5Dec 15, 2023 13:566,950123,441,60857,683,76002,277,376
6Dec 15, 2023 13:586,950117,799,28357,681,28802,281,472
7Dec 15, 2023 13:566,967120,018,11657,823,67002,277,376
8Dec 15, 2023 13:587,005119,436,68058,143,57602,293,760
9Dec 15, 2023 13:567,023120,695,38558,294,44802,281,472