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 03:55olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 09:16C#_user35.93CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 09:16048,439,11237,205,0001,031,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 09:16048,427,55937,260,0001,030,0002,117,632line 5: expected -10 got 0
3Sep 9, 2026 09:16048,346,95437,142,0001,029,0002,117,632line 5: expected -10 got 0
4Feb 22, 2026 03:554,188145,476,187120,435,0001,003,0002,285,568
5Feb 22, 2026 03:554,190147,645,906120,500,0001,004,0002,510,848
6Feb 22, 2026 03:554,190149,103,924120,509,0001,004,0002,285,568
7Feb 22, 2026 03:554,191141,355,961120,527,0001,004,0002,502,656
8Feb 22, 2026 03:554,191143,830,001120,545,0001,004,0002,285,568
9Feb 22, 2026 03:554,192149,983,047119,565,0002,009,0002,285,568
10Feb 22, 2026 03:554,193149,745,549119,607,0001,993,0002,285,568
11Feb 22, 2026 03:554,198152,016,519120,732,0001,006,0002,494,464
12Feb 22, 2026 03:554,202149,219,987120,856,000998,0002,285,568