23492023-01-10 22:26:44kristofKvázi-Izogrampython3Accepted 100/100416ms13588 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
1Accepted18ms11228 KiB
2Accepted17ms11128 KiB
subtask230/30
3Accepted17ms11380 KiB
4Accepted17ms11548 KiB
5Accepted17ms11908 KiB
6Accepted20ms12096 KiB
7Accepted59ms12084 KiB
subtask350/50
8Accepted18ms12088 KiB
9Accepted18ms12300 KiB
10Accepted19ms12520 KiB
11Accepted19ms12708 KiB
12Accepted20ms12856 KiB
13Accepted20ms13080 KiB
subtask420/20
14Accepted35ms12932 KiB
15Accepted59ms13060 KiB
16Accepted109ms13456 KiB
17Accepted186ms13372 KiB
18Accepted282ms13404 KiB
19Accepted382ms13588 KiB
20Accepted416ms13480 KiB