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 listNov 20, 2024 02:26zielajzielajError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 20, 2024 02:2600000Error: expected "53681050428739930 ", got "53681058207067274 "stderr
2Nov 20, 2024 02:2600000Error: expected "53687870637315057 ", got "53687866894226430 "stderr
3Nov 20, 2024 02:263,53856,376,67328,351,0001,012,0002,379,776
4Nov 20, 2024 02:263,54253,998,73728,386,0001,013,0002,527,232
5Nov 20, 2024 02:263,56260,092,95428,544,0001,019,0002,527,232
6Nov 20, 2024 02:263,71659,994,81829,848,000994,0002,531,328
7Nov 20, 2024 02:263,71958,087,55128,879,0001,991,0002,387,968
8Nov 20, 2024 02:263,75352,602,10730,147,0001,004,0002,396,160