2349 | 2023-01-10 22:26:44 | kristof | Kvázi-Izogram | python3 | Accepted 100/100 | 416ms | 13588 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 | 18ms | 11228 KiB | ||||
2 | Accepted | 17ms | 11128 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 17ms | 11380 KiB | ||||
4 | Accepted | 17ms | 11548 KiB | ||||
5 | Accepted | 17ms | 11908 KiB | ||||
6 | Accepted | 20ms | 12096 KiB | ||||
7 | Accepted | 59ms | 12084 KiB | ||||
subtask3 | 50/50 | ||||||
8 | Accepted | 18ms | 12088 KiB | ||||
9 | Accepted | 18ms | 12300 KiB | ||||
10 | Accepted | 19ms | 12520 KiB | ||||
11 | Accepted | 19ms | 12708 KiB | ||||
12 | Accepted | 20ms | 12856 KiB | ||||
13 | Accepted | 20ms | 13080 KiB | ||||
subtask4 | 20/20 | ||||||
14 | Accepted | 35ms | 12932 KiB | ||||
15 | Accepted | 59ms | 13060 KiB | ||||
16 | Accepted | 109ms | 13456 KiB | ||||
17 | Accepted | 186ms | 13372 KiB | ||||
18 | Accepted | 282ms | 13404 KiB | ||||
19 | Accepted | 382ms | 13588 KiB | ||||
20 | Accepted | 416ms | 13480 KiB |