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 11:03Yehor BondarYehor BondarScore: 6,138Success
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 15:42C#_user162.92CustomSolution Held
Sep 8, 2026 12:59C#_user162.92CustomSolution Held
Sep 4, 2026 11:12Tomislav Tunkovic162.92CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 13, 2026 11:046,138188,106,980176,977,0001,047,0002,113,536
2Aug 13, 2026 11:046,138188,136,623176,981,0001,032,0002,113,536
3Aug 13, 2026 11:046,139188,191,093177,018,0001,016,0002,113,536