8805 | 2024-01-31 09:41:54 | Error42 | Kvázi-Izogram | python3 | Accepted 100/100 | 583ms | 15968 KiB |
def main():
n=int(input())
mo=n
betuk=list('qwertzuiopasdfghjklyxcvbnm')
for _ in range (n):
a=str(input().lower())
mon=list(a)
for i in range(len(mon)):
if mon[i] in betuk and mon.count(mon[i])>2:
mo-=1
break
print(mo)
main()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 18ms | 11108 KiB | ||||
2 | Accepted | 17ms | 11428 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 17ms | 11636 KiB | ||||
4 | Accepted | 17ms | 11840 KiB | ||||
5 | Accepted | 17ms | 12116 KiB | ||||
6 | Accepted | 19ms | 12272 KiB | ||||
7 | Accepted | 48ms | 12596 KiB | ||||
subtask3 | 50/50 | ||||||
8 | Accepted | 20ms | 12868 KiB | ||||
9 | Accepted | 19ms | 12556 KiB | ||||
10 | Accepted | 21ms | 12908 KiB | ||||
11 | Accepted | 21ms | 13132 KiB | ||||
12 | Accepted | 23ms | 13232 KiB | ||||
13 | Accepted | 24ms | 13392 KiB | ||||
subtask4 | 20/20 | ||||||
14 | Accepted | 46ms | 13492 KiB | ||||
15 | Accepted | 72ms | 13656 KiB | ||||
16 | Accepted | 128ms | 14416 KiB | ||||
17 | Accepted | 243ms | 14372 KiB | ||||
18 | Accepted | 412ms | 14764 KiB | ||||
19 | Accepted | 526ms | 15252 KiB | ||||
20 | Accepted | 583ms | 15968 KiB |