1930 | 2022-12-11 23:33:41 | mintaaron | Bevásárlás | python3 | Runtime error 0/100 | 17ms | 13412 KiB |
x=0
abc = 'abcdefghijklmnopqrstuvwxyz'
n=int(input("Hány mondatot szeretnél tesztelni? "))
mondatok=[]
for i in range(n):
mondat=input("Mondat: ")
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 | 11020 KiB | ||||
2 | Wrong answer | 17ms | 11548 KiB | ||||
3 | Wrong answer | 16ms | 11604 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Runtime error | 16ms | 11668 KiB | ||||
5 | Runtime error | 16ms | 11708 KiB | ||||
6 | Runtime error | 16ms | 11824 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Runtime error | 17ms | 11940 KiB | ||||
8 | Wrong answer | 17ms | 12084 KiB | ||||
9 | Runtime error | 17ms | 12548 KiB | ||||
10 | Wrong answer | 17ms | 12432 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Wrong answer | 17ms | 12304 KiB | ||||
12 | Runtime error | 17ms | 12640 KiB | ||||
13 | Runtime error | 17ms | 13060 KiB | ||||
14 | Wrong answer | 17ms | 12812 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Wrong answer | 17ms | 12936 KiB | ||||
16 | Wrong answer | 17ms | 13060 KiB | ||||
17 | Wrong answer | 17ms | 13084 KiB | ||||
18 | Runtime error | 17ms | 13412 KiB | ||||
19 | Runtime error | 17ms | 13340 KiB | ||||
20 | Wrong answer | 17ms | 13260 KiB |