Novità

X SALVO50

chicco3

Advanced Member
Ciao Salvo è possibile fare uno script trovare 3 numeri in isotopia la cui somma totale fa 90 come da allegato. Solo a scopo di ricerca grazie un saluto Raf
 

Allegati

  • Immagine 2023-07-19 144823.png
    Immagine 2023-07-19 144823.png
    15,7 KB · Visite: 7
Ciao Chicco3
Codice:
Option Explicit
Sub Main
   Dim Fin,Ini,P1,P2,P3,PP1,PP2,E1,E2
   Dim R1,R2,Es,A,B,C,Caso,Casi
   Fin = EstrazioneFin
   Ini = InputBox("Inserisci l'estrazione che vuoi iniziare",,10000)
   Scrivi " Due ruote, Tre estratti con somma 90 con uno isotopo (Chicco3) - script SALVO50",1,,4,,3,,1
   For Es = Ini To Fin
      Messaggio Es
      AvanzamentoElab Ini,Fin,Es
      Caso = 0
      For R1 = 1 To 12
         If R1 = 11 Then R1 = 12
         For P1 = 1 To 5
            A = Estratto(Es,R1,P1)
            For R2 = 1 To 12
               If R2 = 11 Then R2 = 12
               For P2 = 1 To 4
                  For P3 = P2 + 1 To 5
                     If P1 = P2 Or P1 = P3 Then
                        B = Estratto(Es,R2,P2)
                        C = Estratto(Es,R2,P3)
                        If(A <> B And A <> C) And(A + B + C = 90) Then
                           Caso = Caso + 1
                           Casi = Casi + 1
                           ColoreTesto 1
                           Scrivi String(90,"o") & " Casi Totali " & FormattaStringa(Casi,"0000")
                           ColoreTesto 2
                           Scrivi String(80,"o") & " Estrazione " &(Es) & " caso " & FormattaStringa(Caso,"0000")
                           ColoreTesto 0
                           Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
                           Scrivi "  " & SiglaRuota(R1) & " ",1,0
                           For PP1 = 1 To 5
                              E1 = Estratto(Es,R1,PP1)
                              If E1 = A Then
                                 ColoreTesto 2
                              Else
                                 ColoreTesto 0
                              End If
                              Scrivi Format2(E1) & " ",1,0
                              ColoreTesto 0
                           Next
                           Scrivi
                           Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
                           Scrivi "  " & SiglaRuota(R2) & " ",1,0
                           For PP2 = 1 To 5
                              E2 = Estratto(Es,R2,PP2)
                              If E2 = B Or E2 = C Then
                                 ColoreTesto 2
                              Else
                                 ColoreTesto 0
                              End If
                              Scrivi Format2(E2) & " ",1,0
                              ColoreTesto 0
                           Next
                           Scrivi
                        End If
                     End If
                  Next
               Next
            Next
         Next
      Next
      If ScriptInterrotto Then Exit Sub
   Next
    
End Sub
 

Ultima estrazione Lotto

  • Estrazione del lotto
    lunedì 05 maggio 2025
    Bari
    62
    19
    47
    49
    66
    Cagliari
    59
    73
    56
    14
    29
    Firenze
    21
    36
    80
    15
    87
    Genova
    66
    36
    20
    63
    83
    Milano
    88
    60
    04
    34
    05
    Napoli
    70
    36
    85
    44
    04
    Palermo
    41
    75
    63
    59
    20
    Roma
    19
    53
    63
    18
    09
    Torino
    38
    47
    06
    69
    82
    Venezia
    78
    87
    31
    06
    13
    Nazionale
    60
    42
    79
    67
    64
    Estrazione Simbolotto
    Milano
    34
    15
    22
    12
    39

Ultimi Messaggi

Indietro
Alto