Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Lista_fit[500]
- Lista_fit2[500]
- lista_fit3[500]
- Lista_fit2 = Lista_fit
- Lista_fit3 = Lista_fit
- valorfit = 1
- while(min(Lista_fit2) != 101)
- menor = min(Lista_fit2)
- indice = Lista_fit2.index(menor)
- Lista_fit3[indice] = valorfit
- Lista_fit2[indice] = 101
- if(menor != menor2)
- valorfit += 1
- menor2 = menor
- total_fit = 0
- for i in range(500):
- total_fit += Lista_fit3[i]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement