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 listOct 11, 2026 13:08janwwwjanwwwScore: 2,626Success
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 14, 2026 22:17Andrew Epstein51.10CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2026 13:092,56285,551,25573,246,0001,056,0002,113,536
2Oct 11, 2026 13:092,57885,365,84973,775,0001,012,0002,113,536
3Oct 11, 2026 13:092,58386,133,42173,866,0001,060,0002,113,536
4Oct 11, 2026 13:092,58585,568,86573,877,0001,091,0002,113,536
5Oct 11, 2026 13:092,62686,718,03874,995,0001,174,0002,113,536
6Oct 11, 2026 13:092,63286,916,98475,295,0001,052,0002,113,536
7Oct 11, 2026 13:092,63386,964,09875,295,0001,062,0002,113,536
8Oct 11, 2026 13:092,64087,423,33175,514,0001,074,0002,113,536
9Oct 11, 2026 13:092,65088,884,23575,806,0001,048,0002,117,632