1931 | 2022-12-11 23:35:19 | mintaaron | Bevásárlás | python3 | Runtime error 0/100 | 17ms | 13108 KiB |
x=0
abc = 'abcdefghijklmnopqrstuvwxyz'
n=int(input())
mondatok=[]
for i in range(n):
mondat=input()
mondatok.append(mondat)
def fgv(t):
for k in range(len(t)):
c = 0
for l in range(len(t)):
if t[k]==t[l]:
c+=1
if t[k] not in abc:
c -= 1
if c > 2:
return 0
if c<=2:
return 1
for i in mondatok:
a = ""
for j in i.split():
for k in j:
a+=k
x+=fgv(a.lower())
print(x)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Runtime error | 17ms | 11144 KiB | ||||
2 | Wrong answer | 17ms | 11424 KiB | ||||
3 | Wrong answer | 17ms | 11672 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Runtime error | 17ms | 11812 KiB | ||||
5 | Runtime error | 17ms | 11596 KiB | ||||
6 | Runtime error | 17ms | 12180 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Runtime error | 17ms | 11980 KiB | ||||
8 | Wrong answer | 17ms | 11880 KiB | ||||
9 | Runtime error | 17ms | 11900 KiB | ||||
10 | Wrong answer | 17ms | 12148 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Wrong answer | 17ms | 11952 KiB | ||||
12 | Runtime error | 17ms | 12312 KiB | ||||
13 | Runtime error | 17ms | 12428 KiB | ||||
14 | Wrong answer | 17ms | 12572 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Wrong answer | 17ms | 12676 KiB | ||||
16 | Wrong answer | 17ms | 12768 KiB | ||||
17 | Wrong answer | 17ms | 13108 KiB | ||||
18 | Runtime error | 17ms | 13056 KiB | ||||
19 | Runtime error | 17ms | 12964 KiB | ||||
20 | Wrong answer | 17ms | 12924 KiB |