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 listMar 4, 2026 14:25DanielDanielError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 13:06C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 13:09092,850,02681,756,0001,086,0002,117,632line 0: expected 32767 got 433196594918262274
2Sep 8, 2026 13:09092,830,98081,755,0001,010,0002,117,632line 0: expected 32767 got 433196594918262274
3Sep 8, 2026 13:09092,859,35881,800,0001,128,0002,117,632line 0: expected 32767 got 433196594918262274
4Mar 4, 2026 14:256,964236,429,467199,947,0001,999,0002,338,816
5Mar 4, 2026 14:256,974225,808,090201,249,0001,001,0002,293,760
6Mar 4, 2026 14:256,976221,349,225202,299,00002,285,568