11201 | 2024-07-16 12:50:51 | 42 | Kvázi-Izogram | python3 | Accepted 100/100 | 204ms | 3080 KiB |
from sys import stdin
input = stdin.readline
def main():
res = 0
for i in range(int(input())):
d={}
for c in input():
if c.isalpha():
cc=c.lower()
d[cc]=d.get(cc,0)+1
ok=True
for cc in d:
if d[cc]>2:
ok=False
break
if ok:
res+=1
print(res)
main()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2960 KiB | ||||
2 | Accepted | 17ms | 2976 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 17ms | 3044 KiB | ||||
4 | Accepted | 17ms | 2960 KiB | ||||
5 | Accepted | 17ms | 2976 KiB | ||||
6 | Accepted | 19ms | 2972 KiB | ||||
7 | Accepted | 30ms | 3064 KiB | ||||
subtask3 | 50/50 | ||||||
8 | Accepted | 19ms | 2952 KiB | ||||
9 | Accepted | 19ms | 3080 KiB | ||||
10 | Accepted | 18ms | 2876 KiB | ||||
11 | Accepted | 19ms | 3044 KiB | ||||
12 | Accepted | 18ms | 3044 KiB | ||||
13 | Accepted | 19ms | 3044 KiB | ||||
subtask4 | 20/20 | ||||||
14 | Accepted | 28ms | 2960 KiB | ||||
15 | Accepted | 37ms | 3044 KiB | ||||
16 | Accepted | 57ms | 3044 KiB | ||||
17 | Accepted | 90ms | 2996 KiB | ||||
18 | Accepted | 149ms | 2916 KiB | ||||
19 | Accepted | 189ms | 2956 KiB | ||||
20 | Accepted | 204ms | 3044 KiB |