2297 | 2023-01-09 20:44:16 | neszbal | Kvázi-Izogram | python3 | Accepted 100/100 | 402ms | 13264 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)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11124 KiB | ||||
2 | Accepted | 17ms | 11320 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 17ms | 11588 KiB | ||||
4 | Accepted | 17ms | 11808 KiB | ||||
5 | Accepted | 17ms | 11968 KiB | ||||
6 | Accepted | 20ms | 12060 KiB | ||||
7 | Accepted | 61ms | 12104 KiB | ||||
subtask3 | 50/50 | ||||||
8 | Accepted | 18ms | 12188 KiB | ||||
9 | Accepted | 18ms | 12528 KiB | ||||
10 | Accepted | 19ms | 12296 KiB | ||||
11 | Accepted | 19ms | 12392 KiB | ||||
12 | Accepted | 19ms | 12376 KiB | ||||
13 | Accepted | 20ms | 12532 KiB | ||||
subtask4 | 20/20 | ||||||
14 | Accepted | 37ms | 12492 KiB | ||||
15 | Accepted | 54ms | 12732 KiB | ||||
16 | Accepted | 94ms | 12864 KiB | ||||
17 | Accepted | 178ms | 13136 KiB | ||||
18 | Accepted | 314ms | 12672 KiB | ||||
19 | Accepted | 358ms | 12768 KiB | ||||
20 | Accepted | 402ms | 13264 KiB |