110492024-07-05 10:08:06probaKvázi-Izogrampython3Accepted 100/100144ms4768 KiB
m = [input() for i in range(int(input()))]

def isogram(mondat):
    
    betuk = [0 for j in range(26)]
    for i in range(26):
        betuk[i] = mondat.count(chr(i+65))
    return max(betuk) < 3
        
db = 0
for i in m:
    if isogram(i.upper()):
        db += 1
        
print(db)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms2920 KiB
2Accepted17ms2916 KiB
subtask230/30
3Accepted18ms3016 KiB
4Accepted17ms3044 KiB
5Accepted19ms3192 KiB
6Accepted28ms3172 KiB
7Accepted119ms3556 KiB
subtask350/50
8Accepted18ms3064 KiB
9Accepted18ms3048 KiB
10Accepted19ms2936 KiB
11Accepted18ms2916 KiB
12Accepted18ms3044 KiB
13Accepted18ms3044 KiB
subtask420/20
14Accepted25ms3008 KiB
15Accepted32ms3060 KiB
16Accepted45ms3492 KiB
17Accepted71ms3664 KiB
18Accepted108ms4196 KiB
19Accepted131ms4580 KiB
20Accepted144ms4768 KiB