88052024-01-31 09:41:54Error42Kvázi-Izogrampython3Accepted 100/100583ms15968 KiB
def main():
    n=int(input())
    mo=n
    betuk=list('qwertzuiopasdfghjklyxcvbnm')
    for _ in range (n):
        a=str(input().lower())
        mon=list(a)

        for i in range(len(mon)):
            
            if mon[i] in betuk and mon.count(mon[i])>2:
                mo-=1
                break

    print(mo)
main()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted18ms11108 KiB
2Accepted17ms11428 KiB
subtask230/30
3Accepted17ms11636 KiB
4Accepted17ms11840 KiB
5Accepted17ms12116 KiB
6Accepted19ms12272 KiB
7Accepted48ms12596 KiB
subtask350/50
8Accepted20ms12868 KiB
9Accepted19ms12556 KiB
10Accepted21ms12908 KiB
11Accepted21ms13132 KiB
12Accepted23ms13232 KiB
13Accepted24ms13392 KiB
subtask420/20
14Accepted46ms13492 KiB
15Accepted72ms13656 KiB
16Accepted128ms14416 KiB
17Accepted243ms14372 KiB
18Accepted412ms14764 KiB
19Accepted526ms15252 KiB
20Accepted583ms15968 KiB