11050 | 2024-07-05 10:57:21 | proba | Kvázi-Izogram | python3 | Accepted 100/100 | 97ms | 4220 KiB |
m = [input() for i in range(int(input()))]
def isogram(mondat):
for i in range(26):
if mondat.count(chr(i+65)) > 2:
return False
return True
db = 0
for i in m:
if isogram(i.upper()):
db += 1
print(db)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2916 KiB | ||||
2 | Accepted | 17ms | 2960 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 18ms | 2972 KiB | ||||
4 | Accepted | 17ms | 2948 KiB | ||||
5 | Accepted | 18ms | 2956 KiB | ||||
6 | Accepted | 27ms | 3080 KiB | ||||
7 | Accepted | 97ms | 3684 KiB | ||||
subtask3 | 50/50 | ||||||
8 | Accepted | 18ms | 3060 KiB | ||||
9 | Accepted | 18ms | 2836 KiB | ||||
10 | Accepted | 18ms | 2916 KiB | ||||
11 | Accepted | 18ms | 2980 KiB | ||||
12 | Accepted | 18ms | 2960 KiB | ||||
13 | Accepted | 17ms | 2960 KiB | ||||
subtask4 | 20/20 | ||||||
14 | Accepted | 21ms | 3088 KiB | ||||
15 | Accepted | 27ms | 3084 KiB | ||||
16 | Accepted | 35ms | 3172 KiB | ||||
17 | Accepted | 50ms | 3428 KiB | ||||
18 | Accepted | 75ms | 3724 KiB | ||||
19 | Accepted | 90ms | 4112 KiB | ||||
20 | Accepted | 96ms | 4220 KiB |