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 listJun 9, 2024 14:41matsuoka-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
1Jun 9, 2024 14:4100000Error: No answer to stdout. Died or killed?stderr
2Jun 9, 2024 17:4300000Error: expected "53690166395851861 ", got "73478211279380490"stderr
3Jun 9, 2024 14:414,391102,619,89236,446,73802,248,704
4Jun 9, 2024 14:414,423114,830,50136,711,37802,244,608
5Jun 9, 2024 14:414,441122,018,64036,863,22702,248,704