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 13, 2026 14:49Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:19C#_user255.82CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:19042,284,05731,052,0002,484,0002,121,728line 5: expected -10 got -100stderr
2Sep 9, 2026 08:19043,119,00630,796,0002,469,0002,121,728line 5: expected -10 got -100stderr
3Sep 9, 2026 08:19041,877,16030,927,0002,476,0002,121,728line 5: expected -10 got -100stderr
4Aug 13, 2026 14:493,906121,520,313110,558,0002,729,0002,121,728stderr
5Aug 13, 2026 14:493,909121,739,458110,635,0002,744,0002,121,728stderr
6Aug 13, 2026 14:493,911121,875,356110,671,0002,766,0002,121,728stderr