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 listJun 20, 2026 09:18A_ShamanA_ShamanError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:34Haha Expert140.08CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:34079,872,85854,957,00015,000,0002,113,536line 5: expected -10 got 1
2Sep 9, 2026 08:34079,815,36054,733,00014,896,0002,113,536line 5: expected -10 got 1
3Sep 9, 2026 08:34078,844,73454,500,00014,345,0002,113,536line 5: expected -10 got 1
4Jun 20, 2026 09:187,107215,152,224183,056,00023,072,0002,113,536
5Jun 20, 2026 09:187,139216,135,555184,734,00022,319,0002,113,536
6Jun 20, 2026 09:187,157216,687,391183,489,00024,083,0002,113,536