+ 1

New Driver License проблема с решением

name = input() amount = int(input()) names = input().split() let = [] for i in names: let.append(i0]) let.append(name[0]) let.sort() char = let.index(name[0]) print(int((char+1)*20//amount)) Вот мой код, но он не проходит скрытые тесты 3 и 5.

11th Aug 2023, 11:15 AM
Георгий Ким
Георгий Ким - avatar
1 Antwort
+ 3
check statement: let.append(i0]) in this statment '0]' unnecessary. corrected statement is: let.append(i) Fixed code: I added some logic to your code https://code.sololearn.com/cY6Ovam4316U/?ref=app
11th Aug 2023, 1:41 PM
Shree
Shree - avatar