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 23:38Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:10C#_user15.71CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:11010,797,72201,960,00020,480No answer to stdout. Died or killed?
2Aug 14, 2026 23:382,34276,391,05665,141,0002,804,0002,117,632
3Aug 14, 2026 23:382,34476,401,76465,193,0002,808,0002,117,632
4Aug 14, 2026 23:382,34476,599,97865,154,0002,830,0002,117,632
5Aug 14, 2026 23:382,34576,419,10465,203,0002,810,0002,117,632
6Aug 14, 2026 23:382,34576,460,59665,201,0002,831,0002,117,632
7Aug 14, 2026 23:382,34577,188,01465,203,0002,818,0002,117,632
8Aug 14, 2026 23:382,34676,428,31065,242,0002,815,0002,117,632
9Aug 14, 2026 23:382,34677,151,42065,181,0002,870,0002,117,632
10Aug 14, 2026 23:382,34777,152,76065,265,0002,815,0002,117,632