11052 | 2024-07-05 14:29:58 | proba | Kvázi-Izogram | python3 | Accepted 100/100 | 140ms | 4196 KiB |
m = [input().upper() for i in range(int(input()))]
def isogram(mondat):
betuk = [i for i in list(set(mondat)) if i in 'ABCDEFGHIJKLMNOPQRTSUVWXYZ']
for i in betuk:
if mondat.count(i) > 2:
return False
return True
db = 0
for i in m:
if isogram(i):
db += 1
print(db)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2960 KiB | ||||
2 | Accepted | 17ms | 2988 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 17ms | 2916 KiB | ||||
4 | Accepted | 17ms | 2916 KiB | ||||
5 | Accepted | 18ms | 3108 KiB | ||||
6 | Accepted | 20ms | 3176 KiB | ||||
7 | Accepted | 43ms | 3684 KiB | ||||
subtask3 | 50/50 | ||||||
8 | Accepted | 18ms | 2916 KiB | ||||
9 | Accepted | 18ms | 2904 KiB | ||||
10 | Accepted | 18ms | 2960 KiB | ||||
11 | Accepted | 19ms | 3056 KiB | ||||
12 | Accepted | 18ms | 2932 KiB | ||||
13 | Accepted | 18ms | 3044 KiB | ||||
subtask4 | 20/20 | ||||||
14 | Accepted | 25ms | 2940 KiB | ||||
15 | Accepted | 29ms | 3044 KiB | ||||
16 | Accepted | 43ms | 3428 KiB | ||||
17 | Accepted | 65ms | 3428 KiB | ||||
18 | Accepted | 103ms | 3712 KiB | ||||
19 | Accepted | 127ms | 4068 KiB | ||||
20 | Accepted | 140ms | 4196 KiB |