22972023-01-09 20:44:16neszbalKvázi-Izogrampython3Accepted 100/100402ms13264 KiB
N = int(input())

countList = [0 for i in range(26)]

jok = N

for i in range(N):
    rossz = False
    countList = [0 for i in range(26)]

    rawText = list(input().strip().lower())
    for j in rawText: 
        
        if ord(j)- 97 >= 0 and ord(j)- 97<= 26:
        
            if countList[ord(j)- 97] < 2:
                countList[ord(j)- 97] += 1
            else:
                rossz = True
    if rossz:
        jok -= 1
print(jok)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms11124 KiB
2Accepted17ms11320 KiB
subtask230/30
3Accepted17ms11588 KiB
4Accepted17ms11808 KiB
5Accepted17ms11968 KiB
6Accepted20ms12060 KiB
7Accepted61ms12104 KiB
subtask350/50
8Accepted18ms12188 KiB
9Accepted18ms12528 KiB
10Accepted19ms12296 KiB
11Accepted19ms12392 KiB
12Accepted19ms12376 KiB
13Accepted20ms12532 KiB
subtask420/20
14Accepted37ms12492 KiB
15Accepted54ms12732 KiB
16Accepted94ms12864 KiB
17Accepted178ms13136 KiB
18Accepted314ms12672 KiB
19Accepted358ms12768 KiB
20Accepted402ms13264 KiB