Re,Un algo ???
Je reste très sceptique... A la limite, des combinaisons aléatoures, pourquoi pas...
Bonne soirée
=-(1-((2*(FACT((3+4))/5))-6))
=-1^2*FACT(3)^4-5+FACT(6)
=-1-2+FACT((FACT(3)+RACINE(4)))/FACT(5)*6
=-1*2-FACT(FACT(3))+FACT(4)*(FACT(5)-6)
=-1+FACT((2^3))/4/5
=1*2*FACT((3+4))/5
=1+2*FACT((3+4))/5
1*2-FACT(FACT(3))+FACT(4)*(FACT(5)-6)
Sub tKIT_5solution()
'Sub LaunchSingle()
Dim n%, v&, Rw&, tim
tim = Timer
'Do
n = 5 'Application.InputBox("n ?", Default:=5, Type:=1)
'Loop Until n > 5 And n < 10
v = 2011 'Application.InputBox("cible ?", Default:=2011, Type:=1)
Ecr = 1 'Application.InputBox("Ecrire la solution à combien près ?", Default:=1, Type:=1)
Rw = Cells(Rows.Count, 1).End(xlUp).Row
If Rw = 1 Then Rw = 0
With Application
.ScreenUpdating = False
x = False
Do
Call ert(n, v)
Loop Until x = True
Cells(Rw + 1, 1) = "'" & Frm
Cells(Rw + 2, 1) = "'" & Txt
Cells(Rw + 3, 1) = Res
.ScreenUpdating = True
MsgBox .Round((Timer - tim), 1) & " secondes."
End With
End Sub
=-(1-2)+FACT(3)^4-5+FACT(6)
-(1-2)+3!^4-5+6!
2012
=+1^2+FACT(3)^4-5+FACT(6)
+1^2+3!^4-5+6!
2012
=-(1-2)+(FACT(3)^4)-5+FACT(6)
-(1-2)+(3!^4)-5+6!
2012
Re,
Fonctionne chez moi, mais donne toujours le même type de réponseBonne soiréeCode:=-(1-2)+FACT(3)^4-5+FACT(6) -(1-2)+3!^4-5+6! 2012 =+1^2+FACT(3)^4-5+FACT(6) +1^2+3!^4-5+6! 2012 =-(1-2)+(FACT(3)^4)-5+FACT(6) -(1-2)+(3!^4)-5+6! 2012