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 22:24Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:28C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:29010,822,27901,957,00020,480No answer to stdout. Died or killed?
2Aug 14, 2026 22:252,68487,385,03674,992,0002,863,0002,121,728stderr
3Aug 14, 2026 22:252,68486,291,47775,004,0002,858,0002,121,728stderr
4Aug 14, 2026 22:252,68486,921,73074,995,0002,848,0002,121,728stderr
5Aug 14, 2026 22:252,68586,351,03675,011,0002,868,0002,121,728stderr
6Aug 14, 2026 22:252,68586,950,36475,008,0002,867,0002,121,728stderr
7Aug 14, 2026 22:252,68587,083,21375,027,0002,843,0002,121,728stderr
8Aug 14, 2026 22:252,68686,909,08875,063,0002,849,0002,121,728stderr
9Aug 14, 2026 22:252,68686,357,84575,063,0002,850,0002,121,728stderr
10Aug 14, 2026 22:252,68686,977,96075,871,0002,039,0002,121,728stderr