Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listAug 16, 2026 14:57Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 05:34Tomislav Tunkovic12.32CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 06:05034,369,26423,178,0001,011,00016,384No answer to stdout. Died or killed?
2Aug 16, 2026 14:582,79591,089,35680,073,0001,005,0002,117,632stderr
3Aug 16, 2026 14:582,79691,076,17180,099,0001,012,0002,117,632stderr
4Aug 16, 2026 14:582,79691,097,49080,078,0001,029,0002,117,632stderr
5Aug 16, 2026 14:582,79991,233,04880,149,0001,025,0002,117,632stderr
6Aug 16, 2026 14:582,79991,162,14880,188,0001,004,0002,117,632stderr
7Aug 16, 2026 14:582,79991,310,30080,168,0001,015,0002,117,632stderr
8Aug 16, 2026 14:582,80091,280,44180,204,0001,008,0002,117,632stderr
9Aug 16, 2026 14:582,80191,367,81580,213,0001,029,0002,117,632stderr
10Aug 16, 2026 14:582,80491,416,10780,235,0001,089,0002,117,632stderr