本帖最后由 netegg 于 2013-1-15 20:06 编辑
[au3]Local $timer = TimerInit()
Local $a[15] = ['+', '-', '*', '/', '+(', '-(', '*(', '/(', ')+', ')-', ')*', ')/', '(', '', ')']
For $i1 = 0 To 7
For $i2 = 0 To 11
For $i3 = 0 To 11
For $i4 = 0 To 11
For $i5 = 0 To 11
For $i6 = 0 To 11
For $i7 = 0 To 11
For $i8 = 12 To 13
For $i9 = 13 To 14
$num = $a[$i8] & '8' & $a[$i1] & '8' & $a[$i2] & '8' & $a[$i3] & '8' & $a[$i4] & '8' & $a[$i5] & '8' & $a[$i6] & '8' & $a[$i7] & '8' & $a[$i9]
If Not (stringregexp($num, "\(8\)|\(8\*8\)|\(8/8\)")) Then
If Execute($num) = 1000 Then
If (Execute(StringTrimRight(StringTrimLeft($num, 1), 1)) = '') Then ConsoleWrite($num & @TAB & TimerDiff($timer) & @CR)
EndIf
EndIf
Next
Next
Next
Next
Next
Next
Next
Next
ConsoleWrite(@CR & $i1 & @CR)
Next[/au3]8+8*8*(8-8/(8+8)+8) 56933.67932534
8+8*(8-8/(8+8)+8)*8 135835.225584051
(8+8)*8*(8-8/8/8)-8 228554.203133188
(8+8)/8*(8*8*8-8)-8 250570.75287235
0
8-8*8*(8/(8+8)-8-8) 317437.608030847
(8-8/8/8)*8*(8+8)-8 334885.731715901
8-8*(8/(8+8)-8-8)*8 403765.316916555
(8-8/(8+8)+8)*8*8+8 412676.426593773
1
(8*8+8*8)*8-8-8-8 526124.16997114
(8*8+8*8)*8-8-(8+8) 526129.74162541
(8*8+8*8)*8-(8+8+8) 526178.463048562
(8*8+8*8)*8-(8+8)-8 526179.471988237
(8*8*8-8)/8*(8+8)-8 568752.186524789
8*8*(8-8/(8+8)+8)+8 655737.289022111
2
3
8+(8-8/(8+8)+8)*8*8 1058657.32077634
8+(8*(8-8/(8+8)+8)*8) 1153738.60054592
4
8-(8*(8/(8+8)-8-8)*8) 1402855.17609517
8-(8/(8+8)-8-8)*8*8 1411918.87225572
5
(8*(8+8)-8/8)*8-8-8 1520871.81871153
(8*(8+8)-8/8)*8-(8+8) 1520876.65859124
8*(8-8/(8+8)+8)*8+8 1539560.09105876
(8*(8-8/(8+8)+8)*8)+8 1539560.90837811
8*(8*8+8*8)-8-8-8 1549606.69097116
(8*(8*8+8*8)-8-8)-8 1549607.51220113
8*(8*8+8*8)-8-(8+8) 1549611.56506879
(8*(8*8+8*8)-8)-8-8 1549616.17568846
8*(8*(8+8)-8/8)-8-8 1633166.57525595
(8*(8*(8+8)-8/8)-8)-8 1633167.42190494
6
7
还是有几个重的 |