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 14:57Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:19C#_user26.19CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:19053,588,94840,981,0002,427,0002,117,632line 5: expected -10 got 13011101
2Sep 9, 2026 08:19052,658,34240,985,0002,450,0002,117,632line 5: expected -10 got 13011101
3Sep 9, 2026 08:19052,741,61440,999,0002,442,0002,117,632line 5: expected -10 got 13011101
4Aug 13, 2026 14:593,544111,149,094100,061,0002,727,0002,117,632
5Aug 13, 2026 14:593,545111,057,143100,102,0002,728,0002,117,632
6Aug 13, 2026 14:593,545111,211,499100,095,0002,737,0002,117,632
7Aug 13, 2026 14:593,546112,515,142100,127,0002,711,0002,117,632
8Aug 13, 2026 14:593,546111,180,181100,131,0002,718,0002,117,632
9Aug 13, 2026 14:593,548111,098,936100,179,0002,727,0002,117,632
10Aug 13, 2026 14:593,548111,746,799100,188,0002,711,0002,117,632
11Aug 13, 2026 14:593,549111,261,875100,231,0002,714,0002,117,632
12Aug 13, 2026 14:593,553111,457,358100,293,0002,748,0002,117,632