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
    sabato 03 maggio 2025
    Bari
    31
    33
    53
    57
    73
    Cagliari
    40
    20
    72
    19
    16
    Firenze
    71
    44
    61
    70
    46
    Genova
    50
    36
    59
    25
    46
    Milano
    70
    85
    38
    83
    01
    Napoli
    28
    55
    58
    48
    24
    Palermo
    14
    62
    40
    12
    53
    Roma
    65
    36
    39
    57
    25
    Torino
    27
    43
    66
    22
    34
    Venezia
    09
    45
    58
    90
    66
    Nazionale
    68
    89
    14
    39
    25
    Estrazione Simbolotto
    Milano
    34
    02
    32
    09
    07
Indietro
Alto