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 listFeb 22, 2026 06:48olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 09:15C#_user22.29CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 09:15042,646,50331,437,0001,029,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 09:15042,641,82131,482,0001,030,0002,117,632line 5: expected -10 got 0
3Sep 9, 2026 09:15042,769,37431,594,0001,029,0002,117,632line 5: expected -10 got 0
4Feb 22, 2026 06:483,762135,991,651107,095,0002,001,0002,269,184
5Feb 22, 2026 06:483,762136,723,496107,103,0002,001,0002,523,136
6Feb 22, 2026 06:483,763135,200,672108,119,0001,001,0002,285,568
7Feb 22, 2026 06:483,763132,065,474107,118,0002,002,0002,273,280
8Feb 22, 2026 06:483,763133,647,078108,119,0001,001,0002,514,944
9Feb 22, 2026 06:483,763131,882,330107,118,0002,002,0002,269,184
10Feb 22, 2026 06:483,763133,220,872107,119,0002,002,0002,285,568
11Feb 22, 2026 06:483,764131,960,767107,145,0002,002,0002,285,568
12Feb 22, 2026 06:483,769136,014,995107,284,0002,005,0002,514,944