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 14, 2026 11:43marko1597marko1597Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 11:13Tomislav Tunkovic264.62CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 11:14055,569,42444,406,0001,276,00016,384No answer to stdout. Died or killed?
2Aug 14, 2026 11:443,777119,425,761107,179,0002,367,0002,113,536
3Aug 14, 2026 11:443,779119,420,040107,228,0002,385,0002,113,536
4Aug 14, 2026 11:443,781119,578,746107,321,0002,335,0002,113,536