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 19, 2026 09:02Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 05:44Tomislav Tunkovic10.92CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 06:10046,824,31638,244,000016,384No answer to stdout. Died or killed?
2Aug 19, 2026 09:032,15571,095,14562,498,00002,117,632stderr
3Aug 19, 2026 09:032,15670,985,71662,529,00002,117,632stderr
4Aug 19, 2026 09:032,15671,229,04862,548,00002,117,632stderr
5Aug 19, 2026 09:032,15671,017,51862,538,00002,117,632stderr
6Aug 19, 2026 09:032,15670,971,44962,535,00002,117,632stderr
7Aug 19, 2026 09:032,15771,621,52562,568,00002,117,632stderr
8Aug 19, 2026 09:032,16171,137,98762,669,00002,117,632stderr
9Aug 19, 2026 09:032,23873,375,16364,922,00002,117,632stderr
10Aug 19, 2026 09:032,29576,295,81266,558,00002,117,632stderr