24点算法利用加减乘除和括号将5,6,7,8计算出24,写出算式,不能重复,可以混合.

问题描述:

24点算法
利用加减乘除和括号将5,6,7,8计算出24,写出算式,不能重复,可以混合.

(7+5-8)*6

5加6减7得4,4乘6 7减5得2,6除以2得3,3乘8

(5+7-8)*6

12345678

1: (5 + 7 - 8) × 6
2: ((5 + 7) - 8) × 6
3: (5 + (7 - 8)) × 6
4: (5 + 7) × (8 - 6)
5: (5 - 8 + 7) × 6
6: ((5 - 8) + 7) × 6
7: (5 - (8 - 7)) × 6
8: 6 × (5 + 7 - 8)
9: 6 × ((5 + 7) - 8)
10: 6 × (5 + (7 - 8))
11: 6 × (5 - 8 + 7)
12: 6 × ((5 - 8) + 7)
13: 6 × (5 - (8 - 7))
14: 6 × (7 + 5 - 8)
15: 6 × ((7 + 5) - 8)
16: 6 × (7 + (5 - 8))
17: (6 ÷ (7 - 5)) × 8
18: 6 ÷ (7 - 5) × 8
19: 6 ÷ ((7 - 5) ÷ 8)
20: 6 × (7 - 8 + 5)
21: 6 × ((7 - 8) + 5)
22: 6 × (7 - (8 - 5))
23: 6 × (8 ÷ (7 - 5))
24: 6 × 8 ÷(7 - 5)
25: (6 × 8) ÷ (7 - 5)
26: (7 + 5 - 8) × 6
27: ((7 + 5) - 8) × 6
28: (7 + (5 - 8)) × 6
29: (7 + 5) × (8 - 6)
30: (7 - 8 + 5) × 6
31: ((7 - 8) + 5) × 6
32: (7 - (8 - 5)) × 6
33: (8 - 6) × (5 + 7)
34: (8 - 6) × (7 + 5)
35: 8 × (6 ÷ (7 - 5))
36: 8 × 6 ÷(7 - 5)
37: (8 × 6) ÷ (7 - 5)
38: (8 ÷ (7 - 5)) × 6
39: 8 ÷ (7 - 5) × 6
40: 8 ÷ ((7 - 5) ÷ 6)

6/(7-5)*8=24

(5-8+7)*6+24

1:(7 + 5 - 8) × 62:((7 + 5) - 8) × 63:(7 + (5 - 8)) × 64:(7 + 5) × (8 - 6)5:(7 - 8 + 5) × 66:((7 - 8) + 5) × 67:(7 - (8 - 5)) × 68:6 × (7 + 5 - 8)9:6 × ((7 + 5) - 8)10:6 × (7 + (5 - 8))11:(6...

7- 5=2 6÷2=3 3×8=24