1929 | 2022-12-11 15:37:25 | mintaaron | Kvázi-Izogram | python3 | Accepted 100/100 | 107ms | 16428 KiB |
#import sys
#sys.stdin = open('input1.txt', 'r')
n = int(input())
mondat=[]
#print(n)
for i in range(n):
sor=input()
#print(sor)
mondat.append(sor.lower())
betu=[]
#print(ord('a'))
for i in range(0,26):
betu.append(chr(97+i))
isogram=0
for i in mondat:
tobb=False
for j in betu:
if i.count(j)>2:
tobb=True
if tobb==False:
isogram+=1
print(isogram)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11276 KiB | ||||
2 | Accepted | 17ms | 11780 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 17ms | 11844 KiB | ||||
4 | Accepted | 17ms | 12052 KiB | ||||
5 | Accepted | 17ms | 12036 KiB | ||||
6 | Accepted | 23ms | 12260 KiB | ||||
7 | Accepted | 85ms | 13728 KiB | ||||
subtask3 | 50/50 | ||||||
8 | Accepted | 17ms | 12692 KiB | ||||
9 | Accepted | 17ms | 12736 KiB | ||||
10 | Accepted | 17ms | 12812 KiB | ||||
11 | Accepted | 17ms | 13060 KiB | ||||
12 | Accepted | 17ms | 12968 KiB | ||||
13 | Accepted | 17ms | 13004 KiB | ||||
subtask4 | 20/20 | ||||||
14 | Accepted | 20ms | 13240 KiB | ||||
15 | Accepted | 26ms | 13332 KiB | ||||
16 | Accepted | 34ms | 13732 KiB | ||||
17 | Accepted | 52ms | 14488 KiB | ||||
18 | Accepted | 82ms | 15444 KiB | ||||
19 | Accepted | 97ms | 15956 KiB | ||||
20 | Accepted | 107ms | 16428 KiB |