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 05:30olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 09:15C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 09:15048,745,48637,529,0001,033,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 09:15048,700,03137,485,0001,030,0002,117,632line 5: expected -10 got 0
3Sep 9, 2026 09:15048,575,23137,390,0001,031,0002,117,632line 5: expected -10 got 0
4Feb 22, 2026 05:304,032144,633,611114,927,0001,998,0002,514,944
5Feb 22, 2026 05:384,032146,416,534114,931,0001,998,0002,506,752
6Feb 22, 2026 05:304,033143,909,580114,969,0001,999,0002,285,568
7Feb 22, 2026 05:304,034140,857,055114,977,0001,999,0002,285,568
8Feb 22, 2026 05:304,034147,946,011114,979,0001,999,0002,285,568
9Feb 22, 2026 05:384,034141,905,086115,000,0002,000,0002,285,568
10Feb 22, 2026 05:304,035147,998,232115,001,0002,000,0002,285,568
11Feb 22, 2026 05:304,035142,920,514115,017,0002,000,0002,285,568
12Feb 22, 2026 05:304,035145,118,627115,018,0002,000,0002,502,656
13Feb 22, 2026 05:304,037143,066,373116,064,0001,000,0002,506,752
14Feb 22, 2026 05:304,037144,670,238114,077,0003,002,0002,281,472
15Feb 22, 2026 05:384,038149,789,114115,092,0002,001,0002,506,752