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 listMar 3, 2024 04:32matsuoka-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
1Mar 3, 2024 04:3200000Error: expected "53688141641061544 ", got "344.326109ms 499999999500000000 "
2Mar 3, 2024 04:3400000Error: expected "53683677960780858 ", got "296.892421ms 499999999500000000 "
3Mar 3, 2024 05:1600000Error: expected "53688485652035050 ", got "295.764457ms 499999999500000000 "
4Mar 3, 2024 05:1700000Error: expected "53683416980608598 ", got "323.573474ms 499999999500000000 "
5Mar 3, 2024 05:1700000Error: expected "53689902208512744 ", got "302.464591ms 499999999500000000 "