Using left to right evaulation and c/c++ rounding for integer division I've gotten 5540057 solutions.

Not using the standard c/c++ rounding (so for exapmle -2/3=-1 ), I got 5540237 solutions.

I tried using exact calculation by rationals, that gives 5511601 solutions

On the competion there was one AC, and 4 other (CE,TLE,WA).

Some random solutions using left-to-right order (first the tuplet then the solution for n=8000).

Code: Select all

```
[7, 8, 6, 9, 1, 100]
"1+9*100*8"
[6, 4, 75, 3, 100, 9]
"9+75-4*100"
[4, 50, 100, 100, 4, 6]
"6+4*100*100*4/50"
[3, 4, 10, 10, 3, 50]
"3*10+10*50*4"
```