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 listApr 30, 2026 12:30Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 12:48Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 12:51030,625,88619,907,0001,038,00090,112No answer to stdout. Died or killed?
2Apr 30, 2026 12:323,13599,150,09388,944,0001,998,0002,387,968
3Apr 30, 2026 12:323,137108,186,73887,983,0002,999,0002,568,192
4Apr 30, 2026 12:323,138109,060,48187,012,0004,000,0002,310,144
5Apr 30, 2026 12:323,14799,667,40989,276,0002,006,0002,387,968
6Apr 30, 2026 12:323,14999,637,09590,337,0001,003,0002,375,680
7Apr 30, 2026 12:323,153101,251,96589,433,0002,009,0002,379,776
8Apr 30, 2026 12:323,15599,705,47089,489,0002,011,0002,387,968
9Apr 30, 2026 12:323,15699,748,59589,534,0002,012,0002,367,488
10Apr 30, 2026 12:323,15899,821,70889,582,0002,013,0002,392,064