s_id
string
p_id
string
u_id
string
date
string
language
string
original_language
string
filename_ext
string
status
string
cpu_time
string
memory
string
code_size
string
code
string
error
string
stdout
string
s951667492
p02571
u441320782
1600722563
Python
Python (3.8.2)
py
Runtime Error
62
9120
236
S=[i for i in input()] T=[j for j in input()] ans=[] for i in range(len(S)-len(T)): count=0 new_S=[t for t in S[i:]] for j,k in zip(new_S,T): if j==k: count+=1 else: ans.append(count) print(len(T)-max(ans))
Traceback (most recent call last): File "/tmp/tmp7thzh290/tmpr12yx05_.py", line 1, in <module> S=[i for i in input()] ^^^^^^^ EOFError: EOF when reading a line
s007093426
p02571
u548272916
1600631622
Python
Python (3.8.2)
py
Runtime Error
88
9092
250
s = input() t = input() count = 0 for i in range(len(s) - len(t) + 1): for j in range(len(t)): if s[i+j] == t[j]: count += 1 if count != 0: temp = count else: count = 0 if temp == len(t): temp = 0 print(temp)
Traceback (most recent call last): File "/tmp/tmpt2maith1/tmpfhxx23z2.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s002884678
p02571
u402492580
1600613496
Python
Python (3.8.2)
py
Runtime Error
24
9036
191
S, T = input().split("\n") cnt = [] for i in range(len(S)-len(T)+1): mismatch = 0 for j in range(len(T)): if S[i+j] != T[j]: mismatch += 1 cnt.append(mismatch) print(min(cnt))
Traceback (most recent call last): File "/tmp/tmpru9ctg4l/tmpjq0h209j.py", line 1, in <module> S, T = input().split("\n") ^^^^^^^ EOFError: EOF when reading a line
s672704965
p02571
u402492580
1600613384
Python
Python (3.8.2)
py
Runtime Error
25
9084
194
S, T = input().split("\n") cnt = [] for i in range(len(S)-len(T)+1): mismatch = 0 for j in range(len(T)): if S[i+j] != T[j]: mismatch += 1 cnt.append(mismatch) print(min(cnt))
Traceback (most recent call last): File "/tmp/tmp_2m5xb0e/tmpgk6lx9ta.py", line 1, in <module> S, T = input().split("\n") ^^^^^^^ EOFError: EOF when reading a line
s133493917
p02571
u402492580
1600610674
Python
Python (3.8.2)
py
Runtime Error
26
9068
166
S = input() T = input() cnt = 0 for i in range(len(S)-len(T)+1): if S[i] == T[0]: for j in 1 <= j <= len(T)+1: if S[i+j] != T[j]: cnt += 1 print(cnt)
Traceback (most recent call last): File "/tmp/tmpbxtonkzv/tmpx5szsuj6.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s558712999
p02571
u894858952
1600543926
Python
Python (3.8.2)
py
Runtime Error
33
9100
333
N = int(input()) x=[0]*N y=[0]*N L=[0]*N flag = "No" if N <3: flag = "No" else: for i in range(N): x[i],y[i] = map(int, input().split()) for i in range(N): if x[i]==y[i]: L[i]=1 #print(L) for i in range (N-2): #print(i) if L[i] == L[i+1] == L[i+2] == 1: flag = "Yes" pri...
Traceback (most recent call last): File "/tmp/tmpneu6vigm/tmpgqiznw8j.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s022008663
p02571
u693048766
1600526834
Python
Python (3.8.2)
py
Runtime Error
31
9028
1837
S=list(input()) T=list(input()) ...
Traceback (most recent call last): File "/tmp/tmpg8jjsvdm/tmpivwubxi_.py", line 1, in <module> S=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s510097456
p02571
u617298485
1600375957
Python
Python (3.8.2)
py
Runtime Error
25
9012
252
S = input() T = input() if T in S: ans = 0 else: for i in range(1, len(T)): # print(T[i:]) # print(T[:-i]) # print('--------------') if T[i:] in S or T[:-i] in S: ans = i break print(ans)
Traceback (most recent call last): File "/tmp/tmped5aj8bp/tmpjv149p0w.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s703016620
p02571
u775097519
1600353050
Python
Python (3.8.2)
py
Runtime Error
28
9040
253
S = str(input()) T = str(input()) lens = len(S) lent = len(T) ans = [] for i in range(s-t + 1): count = 0 U = S[i: i+t] for i in range(t): if U[j] != T[j]: count += 1 ans.append(count) print(min(ans))
Traceback (most recent call last): File "/tmp/tmph5imddo6/tmpl7rwz6v8.py", line 1, in <module> S = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s595716347
p02571
u168484453
1600251560
Python
PyPy3 (7.3.0)
py
Runtime Error
80
74680
208
S = list(input()) T = list(input()) defolt = 1000 for i in range(len(S)-len(T)): ans = 0 for j in range(len(T)): if S[i+j] != T[j]: ans += 1 defolt = min(defolt,ans) print(ans)
Traceback (most recent call last): File "/tmp/tmpz599loev/tmprxoehkq4.py", line 1, in <module> S = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s857930266
p02571
u168484453
1600251386
Python
PyPy3 (7.3.0)
py
Runtime Error
92
74688
212
S = list(input()) T = list(input()) defolt = 1000 for i in range(len(S)-len(T)): ans = 0 for j in range(len(T)): if S[i+j] != T[j]: ans += 1 defolt = min(defolt,ans) print(ans)
Traceback (most recent call last): File "/tmp/tmprxdeko9p/tmpmnbufctw.py", line 1, in <module> S = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s072815573
p02571
u168484453
1600250781
Python
PyPy3 (7.3.0)
py
Runtime Error
92
74548
209
S = list(input()) T = list(input()) defolt = 1000 for i in range(len(S)-len(T)): ans = 0 for j in range(len(T)): if S[i+j] != T[j]: ans += 1 ans = min(defolt,ans) print(ans)
Traceback (most recent call last): File "/tmp/tmp43fcti0c/tmpeg8u8fb4.py", line 1, in <module> S = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s037493529
p02571
u566159623
1600201605
Python
PyPy3 (7.3.0)
py
Runtime Error
78
68860
349
s = input() t = input() ans = 1001 if len(s)-len(t)==0: temp = 0 for j in range(len(t)): if s[i+j]!=t[j]: temp+=1 ans = min(ans, temp) else: for i in range(len(s)-len(t)): temp = 0 for j in range(len(t)): if s[i+j]!=t[j]: temp+=1 an...
Traceback (most recent call last): File "/tmp/tmptpoez7z3/tmpn8fpunn_.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s764912991
p02571
u740157634
1600103665
Python
Python (3.8.2)
py
Runtime Error
26
8936
206
S = input() T = input() cnt = 0 for i in range(len(s)-len(t)+1): same = 0 for j in range(len(t)): if S[i + j] == T[j]: same += 1 cnt = max(same, cnt) print(len(t)-cnt)
Traceback (most recent call last): File "/tmp/tmpkxouu2wh/tmpp60voswa.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s762568712
p02571
u770293614
1600082944
Python
Python (3.8.2)
py
Runtime Error
24
9100
171
S=input() T=input() result=len(T) for s in range(0,len(S)-len(T)+1): diff=0 for i in range(0,len(T)): if T[i]!=S[s+i]: diff+=1 result=min(ans,diff) print(result)
Traceback (most recent call last): File "/tmp/tmpa_1a2489/tmpxb4stkw8.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s653692795
p02571
u770293614
1600082897
Python
Python (3.8.2)
py
Runtime Error
28
8992
171
S=input() T=input() length=len(T) for s in range(0,len(S)-len(T)+1): diff=0 for i in range(0,len(T)): if T[i]!=S[s+i]: diff+=1 result=min(ans,diff) print(result)
Traceback (most recent call last): File "/tmp/tmpiwvl8i1d/tmpot95tbu4.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s378130018
p02571
u770293614
1600082851
Python
Python (3.8.2)
py
Runtime Error
22
9116
171
S=input() T=input() length=len(T) for i in range(0,len(S)-len(T)+1): diff=0 for i in range(0,len(T)): if T[i]!=S[s+i]: diff+=1 result=min(ans,diff) print(result)
Traceback (most recent call last): File "/tmp/tmpbqgw2k5x/tmpkqaivi47.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s641614332
p02571
u770293614
1600082669
Python
Python (3.8.2)
py
Runtime Error
26
8976
101
S=input() T=input() length=len(T) for i in range(0,len(S)-len(T)+1): if S[i,i+length]==T: print(0)
Traceback (most recent call last): File "/tmp/tmplo83ajb6/tmp322jzwia.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s818227090
p02571
u801576633
1600019735
Python
Python (3.8.2)
py
Runtime Error
60
9072
314
s=input() t=input() if len(s)==len(t): mc=0 for i in range(len(s)): if s[i]!=t[i]: mc=c+1 else: c=[0 for i in range(len(s)-len(t))] for i in range(len(s)-len(t)): for j in range(len(t)): if s[i+j]!=t[j]: c[i]=c[i]+1 mc=min(c) print(mc)
Traceback (most recent call last): File "/tmp/tmpbwla86si/tmpqi8dvoi2.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s329532919
p02571
u801576633
1600019574
Python
Python (3.8.2)
py
Runtime Error
61
9136
301
s=input() t=input() if len(s)==len(t): c=0 for i in range(len(s)): if s[i]!=t[i]: c=c+1 else: c=[0 for i in range(len(s)-len(t))] for i in range(len(s)-len(t)): for j in range(len(t)): if s[i+j]!=t[j]: c[i]=c[i]+1 print(min(c))
Traceback (most recent call last): File "/tmp/tmpyubucgda/tmpat43pobh.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s861987853
p02571
u801576633
1600019262
Python
Python (3.8.2)
py
Runtime Error
56
8980
178
s=input() t=input() c=[0 for i in range(len(s)-len(t))] for i in range(len(s)-len(t)): for j in range(len(t)): if s[i+j]!=t[j]: c[i]=c[i]+1 print(min(c))
Traceback (most recent call last): File "/tmp/tmpx1_ievrs/tmp9t2wqsth.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s505844641
p02571
u048004795
1600010768
Python
Python (3.8.2)
py
Runtime Error
88
9044
580
import sys input = sys.stdin.readline S = input() T = input() S = S.replace('\n','') T = T.replace('\n','') s_list = list(S) t_list = list(T) itti = 0 max_itti = 0 for s in s_list: if s == t_list[itti]: itti += 1 max_itti = max(max_itti,itti) else: itti = 0 flag = False if max_it...
0
s107442620
p02571
u048004795
1600010673
Python
Python (3.8.2)
py
Runtime Error
89
9004
575
import sys input = sys.stdin.readline S = input() T = input() s_list = list(S) s_list = s_list[:-1] t_list = list(T) t_list = t_list[:-1] itti = 0 max_itti = 0 for s in s_list: if s == t_list[itti]: itti += 1 max_itti = max(max_itti,itti) else: itti = 0 flag = False if max_itti ==...
0
s924739286
p02571
u336794632
1599992452
Python
Python (3.8.2)
py
Runtime Error
37
9132
147
S = input() T = input() def d(s,t): return sum([1 if i!=j else 0 for i,j in zip(s,t)]) print(min([d(S[i:], T) for i in range(len(S)-len(T))]))
Traceback (most recent call last): File "/tmp/tmpu4ehu5hg/tmp6sitogpl.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s453101164
p02571
u976065447
1599935611
Python
Python (3.8.2)
py
Runtime Error
22
9008
221
s = input() t = input() s_len = len(s) t_len = len(t) count=0 for i in range(t_len): for j in range: if t[j:j+t_len-i] in s: break else: continue count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmpn2a3zgi7/tmpt5vvxany.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s917375514
p02571
u693716675
1599921554
Python
Python (3.8.2)
py
Runtime Error
26
8980
198
s = input() t = input() ls = len(s) lt = len(t) ans = 0 for i in range(ls-lt+1): same = 0 for j in range(lt): ind = i+lt if s[ind]==t[j]: same += 1 ans = min(ans,min) print(ans)
Traceback (most recent call last): File "/tmp/tmp27xnde3m/tmpbtt93h8e.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s451763653
p02571
u561615664
1599921206
Python
PyPy3 (7.3.0)
py
Runtime Error
323
80796
208
S = input() T = input() lS = len(S) lT = len(T) C = [] for i in range(lS-lT): count = 0 for j in range(lT): if S[i+j]!=T[j]: count += 1 C.append(count) print(min(C))
Traceback (most recent call last): File "/tmp/tmp0jnx6zkl/tmp4yz0aw_4.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s516915694
p02571
u651913160
1599850198
Python
Python (3.8.2)
py
Runtime Error
70
8992
198
s = input() t = input() a = [] for i in range(len(s)-len(t)): count = 0 for j in range(len(t)): if t[j] == s[i + j]: count += 1 a.append(count) print(len(t)-max(a))
Traceback (most recent call last): File "/tmp/tmp07ajbm52/tmpvsydnyzc.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s778753189
p02571
u651913160
1599850174
Python
Python (3.8.2)
py
Runtime Error
70
9064
209
s = input() t = input() a = [] for i in range(len(s)-len(t)): count = 0 for j in range(len(t)): if t[j] == s[i + j]: count += 1 a.append(count) print(len(t)-max(a))
Traceback (most recent call last): File "/tmp/tmp5wahwzlk/tmpc9z7oe9k.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s931335295
p02571
u669573977
1599848664
Python
Python (3.8.2)
py
Runtime Error
70
8892
261
#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3 s = input() t = input() a = [] for i in range(len(s) - len(t)): cnt = 0 for j in range(len(t)): if t[j] == s[i + j]: cnt += 1 a.append(cnt) print(len(t) - max(a))
Traceback (most recent call last): File "/tmp/tmp3txmkrq6/tmpugdtapcn.py", line 3, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s988372573
p02571
u939585142
1599803502
Python
Python (3.8.2)
py
Runtime Error
57
9084
233
S = input() T = input() ans = [len(T) -1] for i in range(len(S)): if S[i] == T[0]: s = 0 for j in range(1,len(T)): if S[i + j] == T[j]: pass else: s += 1 ans.append(s) print(min(ans))
Traceback (most recent call last): File "/tmp/tmpz3gglo3e/tmpsj5jeiil.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s548148754
p02571
u956318161
1599769228
Python
Python (3.8.2)
py
Runtime Error
28
9056
176
S=input() T=input() for i in range(0,len(S)-len(T)+1): score=0 for j in range(0,len(T)): if(S[i] != T[i+j]): score += 1 score = min(score, len(T)) print(score)
Traceback (most recent call last): File "/tmp/tmpnyuvedkm/tmp8k932gtp.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s336030587
p02571
u917642744
1599762887
Python
Python (3.8.2)
py
Runtime Error
32
9076
243
s=input() t=input() ans=len(t) j=0 a=[len(t)-1] for i in range(len(s)-1): if t[j]==s[i]: ans-=1 j+=1 a.append(ans) if j==len(t)-1: j=0 ans=len(t) print(min(a))
Traceback (most recent call last): File "/tmp/tmpfc8x4f_d/tmp3jd_d6wm.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s096997865
p02571
u727787724
1599738858
Python
PyPy3 (7.3.0)
py
Runtime Error
89
68552
176
s=list(input()) t=list(input()) ans=[] for i in range(len(s)-len(t)): cnt=0 for j in range(i,len(t)+i): if s[j]!=t[j-i]: cnt+=1 ans.append(cnt) print(min(ans))
Traceback (most recent call last): File "/tmp/tmplu06r7ni/tmp8ciafubh.py", line 1, in <module> s=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s189716252
p02571
u727787724
1599738777
Python
PyPy3 (7.3.0)
py
Runtime Error
140
74748
173
s=list(input()) t=list(input()) ans=[] for i in range(len(s)-len(t)): cnt=0 for j in range(i,len(t)+i): if s[j]!=t[j]: cnt+=1 ans.append(cnt) print(min(ans))
Traceback (most recent call last): File "/tmp/tmpexthe5yz/tmputk2tiba.py", line 1, in <module> s=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s123137328
p02571
u776860223
1599708403
Python
PyPy3 (7.3.0)
py
Runtime Error
81
74788
281
S = input() T = input() def match_num_character(x, y): count = 0 for a, b in zip(x, y): if a == b: count += 1 return count length = len(T) max_count = max([match_num_character(S[i:i+length], T) for i in range(len(S) - length)]) print(length - max_count)
Traceback (most recent call last): File "/tmp/tmp_drhu5mr/tmpq1jb38iz.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s229121006
p02571
u408958033
1599700832
Python
Python (3.8.2)
py
Runtime Error
56
9112
244
a = input() b = input() ind = [] for i in range(len(a)-len(b)): if a[i] == b[0]: ind.append(i) ans = len(b) for i in range(i): count = 0 for j in range(len(b)): if a[i+j]!=b[j]: count += 1 ans = min(ans,count) print(ans)
Traceback (most recent call last): File "/tmp/tmpk14myv24/tmpjli96b11.py", line 1, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s825766065
p02571
u135265051
1599669081
Python
Python (3.8.2)
py
Runtime Error
470
9084
558
# import math # import statistics a=input() b=input() #b,c=int(input()),int(input()) c,d=[],[] for i in a: c.append(i) for i in b: d.append(i) #e1,e2 = map(int,input().split()) # f = list(map(int,input().split())) #g = [input() for _ in range(a)] # h = [] # for i in range(e1): # h.append(list(map(int,input(...
Traceback (most recent call last): File "/tmp/tmp4qh09zf9/tmpziepg22j.py", line 3, in <module> a=input() ^^^^^^^ EOFError: EOF when reading a line
s078033466
p02571
u421674761
1599666855
Python
Python (3.8.2)
py
Runtime Error
23
9008
186
s = input() t = input() ans = 0 for i in range(s-t+1): cnt = 0 for j in range(len(t)): if s[i+j] == t[j]: cnt += 1 ans = max(ans,cnt) print(len(t)-ans)
Traceback (most recent call last): File "/tmp/tmp711cipbl/tmp7wn279cw.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s139738812
p02571
u478417863
1599666530
Python
Python (3.8.2)
py
Runtime Error
57
8832
166
s=input() t=input() L=len(s) l=len(t) X=[] for i in range(L-l): x=0 for j in range(l): if s[i+j]!=t[j]: x+=1 X.append(x) print(min(X))
Traceback (most recent call last): File "/tmp/tmpdlt587gf/tmpfg5crw02.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s673599797
p02571
u518891382
1599663758
Python
PyPy3 (7.3.0)
py
Runtime Error
85
74732
173
s = input() t = input() ans = [] for i in range(len(s)-len(t)): count = 0 for j in range(len(t)): if s[i+j] != t[j]: count += 1 ans.append(count) print(min(ans))
Traceback (most recent call last): File "/tmp/tmph40ar65g/tmpgab64310.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s748472178
p02571
u518891382
1599663722
Python
PyPy3 (7.3.0)
py
Runtime Error
99
74524
173
s = input() t = input() ans = [] for i in range(len(s)-len(t)): count = 0 for j in range(len(t)): if s[i+j] != t[j]: count += 1 ans.append(count) print(min(ans))
Traceback (most recent call last): File "/tmp/tmpixiokprd/tmpz50dz2dj.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s688703513
p02571
u554734334
1599650106
Python
Python (3.8.2)
py
Runtime Error
53
9048
220
S=list(input()) T=list(input()) A=[] for i in range(len(S)-len(T)): B=0 for j in range(len(T)): if T[j]==S[i+j]: continue else: B =B+1 A.append(B) A.sort() print(A[0])
Traceback (most recent call last): File "/tmp/tmpukwr99aa/tmpufzuec52.py", line 1, in <module> S=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s443659536
p02571
u972036293
1599648808
Python
Python (3.8.2)
py
Runtime Error
57
9084
176
S=input() T=input() ANS=[] for start in range(len(S)-len(T)): ans = 0 for j in range(len(T)): if S[start+j] != T[j]: ans += 1 ANS.append(ans) print(min(ANS))
Traceback (most recent call last): File "/tmp/tmpwe069aqr/tmpaki4momo.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s373229046
p02571
u972036293
1599648731
Python
Python (3.8.2)
py
Runtime Error
45
8992
174
S=input() T=input() ANS=[] for start in range(len(S)-len(T)): ans = 0 for j in range(len(T)): if S[start] != T[j]: ans += 1 ANS.append(ans) print(min(ANS))
Traceback (most recent call last): File "/tmp/tmp9n589ito/tmp44s4bcyv.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s704191784
p02571
u972036293
1599648363
Python
Python (3.8.2)
py
Runtime Error
51
9060
174
S=input() T=input() ANS=[] for start in range(len(S)-len(T)): ans = 0 for j in range(len(T)): if S[start] != T[j]: ans += 1 ANS.append(ans) print(min(ANS))
Traceback (most recent call last): File "/tmp/tmpa8flp50v/tmpn1kw4j1h.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s863491121
p02571
u496449946
1599609661
Python
Python (3.8.2)
py
Runtime Error
24
9088
247
for i in range(len(S)-lenT+1): compareS = S[i:i+lenT] match_len = 0 for j in range(lenT): if compareS[j] == T[j]: match_len += 1 else: if max_match_len < match_len: max_match_len = match_len print(lenT - max_match_len)
Traceback (most recent call last): File "/tmp/tmp3opzm4dv/tmp_gi8q4qo.py", line 1, in <module> for i in range(len(S)-lenT+1): ^ NameError: name 'S' is not defined
s746334998
p02571
u085970119
1599591745
Python
Python (3.8.2)
py
Runtime Error
26
8940
215
Sr = input() Tg = input() ans = 10000 for i in range(len(Sr)-len(Tg)+1): mat = 0 trimmedSr = Sr[i:i + len(Tg)] for j in range(len(Tg)): if trimmedSr != Tg[j]: mat++; ans = min(mat, ans) print(ans)
File "/tmp/tmp7jmsellj/tmplpttha_v.py", line 10 mat++; ^ SyntaxError: invalid syntax
s164006656
p02571
u102960641
1599565687
Python
Python (3.8.2)
py
Runtime Error
23
9000
235
def compare(a,b): res = 0 for x,y in zip(a,b): if x == y: res += 1 return res s,t = map(int, input().split()) len_t = len(t) ans = 0 for i in range(len(s)-len(t)+1): ans = max(ans,compare(s[i:i+len_t],t)) print(ans)
Traceback (most recent call last): File "/tmp/tmprkl8ckgz/tmpztf2mhtp.py", line 8, in <module> s,t = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s774492063
p02571
u102960641
1599565612
Python
Python (3.8.2)
py
Runtime Error
25
9128
234
def compare(a,b): res = 0 for x,y in zip(a,b): if x == y: res += 1 return res s,t = map(int, input().split()) len_t = len(t) ans = 0 for i in range(len(s)-len(t)+1): ans = max(ans,compare(s[:i+len_t],t)) print(ans)
Traceback (most recent call last): File "/tmp/tmpwkeejpsf/tmpj0rxgstf.py", line 8, in <module> s,t = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s102759367
p02571
u102960641
1599565563
Python
Python (3.8.2)
py
Runtime Error
23
8960
227
def compare(a,b): res = 0 for x,y in zip(a,b): res += 1 if x == y return res s,t = map(int, input().split()) len_t = len(t) ans = 0 for i in range(len(s)-len(t)+1): ans = max(ans,compare(s[:i+len_t],t)) print(ans)
File "/tmp/tmp81g9y9bf/tmpqyz0iamc.py", line 4 res += 1 if x == y ^^^^^^^^^^^ SyntaxError: expected 'else' after 'if' expression
s765073058
p02571
u508960292
1599510262
Python
Python (3.8.2)
py
Runtime Error
25
9028
287
strS = input() strT = input() maxRange = 0 l = 0 while l <= (len(strS)-len(strT)): m = 0 count = 0 while m <= (len(strT)): if strS[l+m] != strT[m]: count += 1 m += 1 if maxRange > count: maxRange = count l += 1 print(maxRange)
Traceback (most recent call last): File "/tmp/tmp8qebtt0w/tmpq15ovmib.py", line 1, in <module> strS = input() ^^^^^^^ EOFError: EOF when reading a line
s387502159
p02571
u508960292
1599510158
Python
Python (3.8.2)
py
Runtime Error
23
8992
297
strS = input() strT = input() maxRange = 0 l = 0 while l <= (len(strS)-len(strT)): m = 0 count = 0 while m <= (len(strT)): if strS[l+m] == strT[m]: count += 1 m += 1 if maxRange < count: maxRange = count l += 1 print(len(strT)-maxRange)
Traceback (most recent call last): File "/tmp/tmpzcj5qae0/tmp384z5azl.py", line 1, in <module> strS = input() ^^^^^^^ EOFError: EOF when reading a line
s417160811
p02571
u508960292
1599509468
Python
PyPy3 (7.3.0)
py
Runtime Error
93
74788
342
strings = input().splitlines() strS = list(strings[0]) strT = list(strings[1]) maxRange = 0 l = 0 while l < (len(strS)-len(strT)): m = 0 count = 0 while m < (len(strT)): if strS[l+m] == strT[m]: count += 1 m += 1 if maxRange < count: maxRange = count l += 1 prin...
Traceback (most recent call last): File "/tmp/tmpejvqa8hj/tmpaeu4jmvj.py", line 1, in <module> strings = input().splitlines() ^^^^^^^ EOFError: EOF when reading a line
s421927908
p02571
u508960292
1599509423
Python
Python (3.8.2)
py
Runtime Error
25
9032
512
strings = input().splitlines() # 一致している数の最大値を取得する。 # そして、その一致している数と、Tの数を比較する。足りない文字数を補うと良い strS = list(strings[0]) strT = list(strings[1]) maxRange = 0 l = 0 while l < (len(strS)-len(strT)): m = 0 count = 0 while m < (len(strT)): if strS[l+m] == strT[m]: count += 1 m += 1 ...
Traceback (most recent call last): File "/tmp/tmpkh4edg9n/tmps305sqa6.py", line 1, in <module> strings = input().splitlines() ^^^^^^^ EOFError: EOF when reading a line
s386597525
p02571
u508960292
1599509359
Python
PyPy3 (7.3.0)
py
Runtime Error
90
74732
512
strings = input().splitlines() # 一致している数の最大値を取得する。 # そして、その一致している数と、Tの数を比較する。足りない文字数を補うと良い strS = list(strings[0]) strT = list(strings[1]) maxRange = 0 l = 0 while l < (len(strS)-len(strT)): m = 0 count = 0 while m < (len(strT)): if strS[l+m] == strT[m]: count += 1 m += 1 ...
Traceback (most recent call last): File "/tmp/tmp1dm3k_9x/tmpjv_qdr_y.py", line 1, in <module> strings = input().splitlines() ^^^^^^^ EOFError: EOF when reading a line
s613230930
p02571
u949353021
1599490422
Python
Python (3.8.2)
py
Runtime Error
53
9064
225
s = input() t = input() numlist = [] for i in range(len(s)-len(t)): a = s[i:i+len(t)] count = 0 for j in range(len(t)): if a[j] != t[j]: count += 1 numlist.append(count) print(min(numlist))
Traceback (most recent call last): File "/tmp/tmpzda97g21/tmpm6bsj9d9.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s849079464
p02571
u792720861
1599473638
Python
Python (3.8.2)
py
Runtime Error
56
8832
172
s = input() t = input() ans = 10**8 for i in range(len(s)): cnt = 0 for j in range(len(t)): if s[i+j] != t[j]: cnt += 1 ans = min(ans, cnt) print(ans)
Traceback (most recent call last): File "/tmp/tmpx91j0qak/tmp7pycfpcs.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s679704149
p02571
u244434589
1599435613
Python
Python (3.8.2)
py
Runtime Error
26
9048
198
s=input() t=input() a = len(s) b = len(t) l = [] for i in range(a-b+1): cnt = 0 c = s[i,i+t] for x, y in zip(c, t): if x != y: cnt +=1 l.append(cnt) print(min(l))
Traceback (most recent call last): File "/tmp/tmpw2kei1rz/tmp48wshatr.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s454052399
p02571
u453248124
1599428759
Python
Python (3.8.2)
py
Runtime Error
40
9112
211
S = list(input()) T = list(input()) i = 0 ans =[] while i + len(T) < len(S): n = 0 for s, t in zip(S[i:i+len(T)], T): if s != t: n += 1 ans.append(n) i += 1 print(min(ans))
Traceback (most recent call last): File "/tmp/tmp2mw2hjie/tmpfo94kx03.py", line 1, in <module> S = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s097963898
p02571
u244466744
1599420836
Python
Python (3.8.2)
py
Runtime Error
28
9060
200
S = input() T = input() s = len(S) t = len(T) ans1 = 10000000 for i in range(s - t + 1): ans = 0 for j in range(t): if t[j] != s[i + j]: ans += 1 ans1 = ans print(ans1)
Traceback (most recent call last): File "/tmp/tmphrgopab9/tmpwkzv6vfd.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s517461284
p02571
u815043514
1599394468
Python
Python (3.8.2)
py
Runtime Error
341
21448
240
a=str(input()) b=str(input()) ans=[] ans.append(len(b)) for i in range(len(b)): dif=0 k=a.find(b[i]) for j in range(len(b)): if a[k-i+j]!=b[j] and k-i+j>=0: dif+=1 ans.append(dif) print(min(ans))
Traceback (most recent call last): File "/tmp/tmpdmgqaxzm/tmp7tstfu9s.py", line 1, in <module> a=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s838105728
p02571
u815043514
1599384334
Python
Python (3.8.2)
py
Runtime Error
260
8988
202
s = input() t = input() ans = list() for i in range(len(t)): k=0 hit=s.find(t[i]) for l in range(len(t)): if s[(hit)+l-i]!=t[l-i]: k+=1 ans.append(k) print(min(ans))
Traceback (most recent call last): File "/tmp/tmp9q9po4fa/tmpllqqaaqx.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s058335886
p02571
u815043514
1599384269
Python
Python (3.8.2)
py
Runtime Error
580
9032
227
s = input() t = input() ans = list() for i in range(len(t)): k=0 hit=s.find(t[i]) for l in range(len(t)): if s[(hit)+l-i]!=t[l-i]: k+=1 print(k+100) ans.append(k) print(min(ans))
Traceback (most recent call last): File "/tmp/tmpygbpccm2/tmp9e2xt4gu.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s045734781
p02571
u714852797
1599345541
Python
Python (3.8.2)
py
Runtime Error
26
9004
207
S, T = [input() for _ in range(2)] answer = 1001 for i in range(len(S) - len(T) + 1): k = 0 U = S[i:i + len(T)] for j in range(len(T)): if T(j) != U(j): k += 1 answer = min(answer, k) print(answer)
Traceback (most recent call last): File "/tmp/tmpypfwgixe/tmpx984fhq8.py", line 1, in <module> S, T = [input() for _ in range(2)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpypfwgixe/tmpx984fhq8.py", line 1, in <listcomp> S, T = [input() for _ in range(2)] ^^^^^^^ EOFError: EOF when rea...
s885343129
p02571
u663169541
1599342174
Python
Python (3.8.2)
py
Runtime Error
59
8960
181
S = input() T = input() ans=[0]*(len(S) - len(T)) for a in range(len(S) - len(T)): for b in range(len(T)): if S[a + b] != T[b]: ans[a] += 1 print(min(ans))
Traceback (most recent call last): File "/tmp/tmpch6dn344/tmpiuuplue3.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s719630178
p02571
u663169541
1599341977
Python
Python (3.8.2)
py
Runtime Error
57
9092
181
S = input() T = input() ans=[0]*(len(S) - len(T)) for a in range(len(S) - len(T)): for b in range(len(T)): if S[a + b] != T[b]: ans[a] += 1 print(min(ans))
Traceback (most recent call last): File "/tmp/tmpz0hro6r1/tmpensg5yoe.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s366348112
p02571
u204616996
1599337160
Python
Python (3.8.2)
py
Runtime Error
27
9016
166
S=input() T=input() ans=len(T) for i in range(len(S)-len(T)+1): _ans=0 for j in range(len(T)): if S[i+j]!=T[i+j]: _ans+=1 ans=min(ans,_ans) print(ans)
Traceback (most recent call last): File "/tmp/tmponl4pudx/tmp676diicw.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s858523788
p02571
u904811150
1599335487
Python
Python (3.8.2)
py
Runtime Error
22
9000
234
S = input() T = input() ans = len(T) for i in range(len(S) - len(T) + 1): diff = 0 for j in range(len(T)): if S[i+j] != T[j]: diff += 1 l_diff.append(diff) ans = min(ans, diff) print(ans)
Traceback (most recent call last): File "/tmp/tmpnpyced_z/tmps0rbua3f.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s513553826
p02571
u904811150
1599334895
Python
Python (3.8.2)
py
Runtime Error
57
8968
183
S = input() T = input() ans = len(T) for i in range(len(S) - len(T)): diff = 0 for j in range(len(T)): if S[i+j] != T[j]: diff += 1 print(min(ans, diff))
Traceback (most recent call last): File "/tmp/tmp6qvs72pz/tmp0mvwaap2.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s956717698
p02571
u427427681
1599332854
Python
Python (3.8.2)
py
Runtime Error
76
8976
202
S=input() T=input() check=[] for i,ss in enumerate(S[:-len(T)]): check.append(0) for j,tt in enumerate(T): if tt==S[i+j]: check[i]+=1 # print(check) print(len(T)-max(check))
Traceback (most recent call last): File "/tmp/tmp1hs5xg_n/tmpsp9un210.py", line 2, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s357969820
p02571
u668552863
1599331517
Python
Python (3.8.2)
py
Runtime Error
28
8932
212
S=input() T=input() i=0 j=0 match = 0 for i in range(Len(S)-Len(T)): count = 0 for j in range(Len(T)): if S[i+j]==T[j]: count=count+1 if match<count: match=count print(Len(T)-match)
Traceback (most recent call last): File "/tmp/tmpvwp75lwy/tmpwfy2oifw.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s403321418
p02571
u668552863
1599331282
Python
Python (3.8.2)
py
Runtime Error
26
9116
217
S=input() T=input() i=0 j=0 match = 0 for i in Range(Len(S)-Len(T)): count = 0 for j in Range(Len(T)): if S[i+j]==T[j]: count=count+1 if match<count: match=count print(Len(T)-match)
Traceback (most recent call last): File "/tmp/tmp3y05vfv0/tmpk1ov0ow9.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s900422465
p02571
u468972478
1599318211
Python
Python (3.8.2)
py
Runtime Error
41
9108
175
s, t = [input() for i in range(2)] c = [] for i in range(len(s) - len(t)): d = 0 for a, b in zip(s[i:i+len(t)], t): if a != b: d += 1 c.append(d) print(min(c))
Traceback (most recent call last): File "/tmp/tmpo0adn5cf/tmpc_h6fi8n.py", line 1, in <module> s, t = [input() for i in range(2)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpo0adn5cf/tmpc_h6fi8n.py", line 1, in <listcomp> s, t = [input() for i in range(2)] ^^^^^^^ EOFError: EOF when rea...
s215204953
p02571
u468972478
1599317680
Python
Python (3.8.2)
py
Runtime Error
56
8916
180
s, t = [input() for i in range(2)] c = [] for i in range(len(s) - len(t)): d = len(t) for a, b in zip(s[i:i+len(t)], t): if a == b: d -= 1 c.append(d) print(min(c))
Traceback (most recent call last): File "/tmp/tmpubtxe7ar/tmpyxuqyorn.py", line 1, in <module> s, t = [input() for i in range(2)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpubtxe7ar/tmpyxuqyorn.py", line 1, in <listcomp> s, t = [input() for i in range(2)] ^^^^^^^ EOFError: EOF when rea...
s838143437
p02571
u235508145
1599297352
Python
Python (3.8.2)
py
Runtime Error
23
8948
216
s=input() t=input() count_min = 1000 for i in range(len(s)-len(t)+1): count = 0 for j in range(len(t)): if s[i+j] != t[j]: count++ if count < count_min: count_min = count print(count_min)
File "/tmp/tmp8u8rn3d6/tmp3begfhym.py", line 10 count++ ^ SyntaxError: invalid syntax
s809082258
p02571
u464912173
1599270443
Python
Python (3.8.2)
py
Runtime Error
24
9020
180
a = input() b = input() T=1000 ans = 0 for i in range(len(a)-len(b)+1): for j in range(len(b)): if a[i+j]=!b[j]: ans +=1 ans = min(T, ans) print(ans)
File "/tmp/tmpaq7wgs_q/tmp30pm1s1a.py", line 8 if a[i+j]=!b[j]: ^ SyntaxError: invalid syntax
s217758763
p02571
u656803083
1599268759
Python
Python (3.8.2)
py
Runtime Error
29
9012
203
s, t = input(), input() ans = 0 for i in range(len(s) - len(t) + 1): count = 0 for j in range(len(t)): if s[i][j] == t[j]: count += 1 if ans <= count: ans = count print(len(t) - count)
Traceback (most recent call last): File "/tmp/tmpxi_o80in/tmparkm0o_n.py", line 1, in <module> s, t = input(), input() ^^^^^^^ EOFError: EOF when reading a line
s803269816
p02571
u373956679
1599224127
Python
Python (3.8.2)
py
Runtime Error
27
9012
257
import sys from sys import stdin input = stdin.readline INF = 10**9 s = input() t = input() ans = 10**10 ls = len(s) lt = len(t) for i in range(ls - lt + 1): cnt = 0 for j in range(lt: if (s[i+j] != t[j]): cnt += 1 ans = min(cnt, ans) print(ans)
File "/tmp/tmpnoxsmmpg/tmp1yqykj5e.py", line 14 for j in range(lt: ^ SyntaxError: invalid syntax
s268355024
p02571
u604978223
1599210545
Python
Python (3.8.2)
py
Runtime Error
24
9084
223
import itertools N = int(input()) A = list(map(int, input().split())) MOD = 1000000007 ans = 0 B = list(itertools.combinations(A,2)) for i in range(len(B)): ans += (B[i][0] % MOD) * (B[i][1] % MOD) % MOD print(ans)
Traceback (most recent call last): File "/tmp/tmpl0w0nhwf/tmpnhiskry0.py", line 3, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s731393949
p02571
u865343871
1599148330
Python
Python (3.8.2)
py
Runtime Error
60
9096
187
s = input() t = input() list = [] for i in range(len(s)-len(t)): n=0 for j in range(len(t)): if s[i] == t[j]: n+=1 list.append(n) print(len(t)-max(list))
Traceback (most recent call last): File "/tmp/tmpo0q4hjff/tmpx74q894k.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s360774265
p02571
u412177362
1599084669
Python
Python (3.8.2)
py
Runtime Error
27
8908
180
s=input() t=input() ans=len(t) for i in range(len(s)-len(t)+1): p=s[i:i+len(t)] cur = 0 for j in range(len(t)): if t[j] != t[i + j]: cur += 1 ans=max(ans,cur) print(ans)
Traceback (most recent call last): File "/tmp/tmphs436axp/tmpsdbq7mll.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s159032955
p02571
u842901156
1599067945
Python
Python (3.8.2)
py
Runtime Error
29
9116
235
s = input().split() S = s[0] T = s[1] score = [] for i in range(len(S)-len(T)): U = s[i: i+len(T)] cnt = 0 for j in range(T): if U[j] != T[j]: cnt = cnt + 1 score.append(cnt) print(min(score))
Traceback (most recent call last): File "/tmp/tmp6w3pr2_x/tmpti61i6g8.py", line 1, in <module> s = input().split() ^^^^^^^ EOFError: EOF when reading a line
s033682490
p02571
u196455939
1599058317
Python
Python (3.8.2)
py
Runtime Error
28
9108
294
#B - Substring S = str(input()) T = str(input()) i = 0 j = 0 Slen = len(S) Tlen = len(T) change_min = Tlen for i in range(Slen - Tlen): diff = 0 for j in range(Tlen): if S[i] != T[i + j]: diff += 1 change_min = min(change_min,diff) # 出力 print(change_min)
Traceback (most recent call last): File "/tmp/tmp1otmpy2h/tmp4ksesi_d.py", line 2, in <module> S = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s748544122
p02571
u994985095
1599057192
Python
Python (3.8.2)
py
Runtime Error
1288
137896
299
s1,s2=input(),input() s,ss,c,a=len(s2),len(s1),0,0 L=len(s2) for i in range(L): k,a=0,a+1 for j in range(L-a+1): if s2[k:k+a]in s1[k:]: c=L-a s=min(c,s) print(c) print(k,k+a,s2[k:k+a]) k+=1 print(s)
Traceback (most recent call last): File "/tmp/tmp2qqso72h/tmpne3n00ha.py", line 1, in <module> s1,s2=input(),input() ^^^^^^^ EOFError: EOF when reading a line
s149224260
p02571
u196455939
1599054629
Python
Python (3.8.2)
py
Runtime Error
1710
137908
459
#B - Substring S = str(input()) T = str(input()) i = 0 j = 0 k = len(S) l = len(T) change_min = l for i in range(l): for m in range(l - i) : change = l for j in range(k - (l -i)+1): print(S[j+m:j +l-i],T[m:l-i],change,l-i-m) if S[j+m:j +l-i] == T[m:l-i]: pr...
Traceback (most recent call last): File "/tmp/tmp1626ijf2/tmppkgc2bep.py", line 2, in <module> S = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s464377359
p02571
u853728588
1599032544
Python
Python (3.8.2)
py
Runtime Error
26
9064
182
s = input() t = input() ans = 10000 for i in range(len(s) - len(t) + 1): tmp = 0 for i in range(len(t)): if s[i + j] != s[j]: tmp+=1 ans = min(ans, tmp) print(ans)
Traceback (most recent call last): File "/tmp/tmptfw46tne/tmp70vdpjxx.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s322890004
p02571
u536600145
1599001623
Python
PyPy3 (7.3.0)
py
Runtime Error
169
74688
212
S = input() T = input() ans = len(T) for i in range(len(S) - len(T) + 1): diff = 0 for j in range(len(T)): if T[i] != S[j]: diff += 1 ans = min(ans, diff) print(ans)
Traceback (most recent call last): File "/tmp/tmpnvm08nx3/tmpuzvmqpjx.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s628175735
p02571
u463893436
1598991366
Python
Python (3.8.2)
py
Runtime Error
31
8884
225
s = input() t = input() ans = 10000 for i in range(len(s) - len(t) + 1): score = 0 U = [i:i + len(t)] for j in range(len(t)): if U[j] != t[j]: score += 1 ans = min(ans, score) print(ans)
File "/tmp/tmpmmy7gf73/tmphnv4era1.py", line 8 U = [i:i + len(t)] ^ SyntaxError: invalid syntax
s483296378
p02571
u433375322
1598975963
Python
Python (3.8.2)
py
Runtime Error
92
14680
192
s=list(input()) t=list(input()) l=[] for i in range(len(s)-len(t)+1): c=0 for j in range(len(t)): if s[j+i]==t[j]: c+=1 l.append(c) print(len(t)-max(l))
Traceback (most recent call last): File "/tmp/tmpo0f7p2dx/tmptespdleo.py", line 1, in <module> s=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s235944956
p02571
u239368018
1598975219
Python
Python (3.8.2)
py
Runtime Error
716
137776
401
s, t = input(), input() ls = len(s) lt= len(t) print(ls,lt) is_double = False for i in range(0,lt): size = lt-i for j in range(0,lt-size+1): jps = (j+size) # 0 j (j+size) lt _t = t[j:jps] print(i,j,size,_t, f'\t{s[j:ls-(lt-(j+size))]}') if _t in s[j:ls-(lt-(j+size))]: is_double = True ...
Traceback (most recent call last): File "/tmp/tmp1o0gqiqm/tmp1zapl1pd.py", line 1, in <module> s, t = input(), input() ^^^^^^^ EOFError: EOF when reading a line
s158629814
p02571
u239368018
1598973489
Python
Python (3.8.2)
py
Runtime Error
781
137784
260
s, t = input(), input() lt= len(t) for i in range(lt): is_double = True size = lt-i for j in range(0,i+1): _t = t[j:j+size] print(i,j,size,_t) if _t in s: is_double = False break if not is_double: print(lt-1) break
Traceback (most recent call last): File "/tmp/tmps9d984t4/tmpn_vclnbi.py", line 1, in <module> s, t = input(), input() ^^^^^^^ EOFError: EOF when reading a line
s052522411
p02571
u490489966
1598964353
Python
Python (3.8.2)
py
Runtime Error
74
8992
196
#B import sys s=input() t=input() length=0 ans=[0]*(len(s)-len(t)) for i in range(len(s)-len(t)): for j in range(len(t)): if s[i+j]==t[j]: ans[i]+=1 print(len(t)-max(ans))
Traceback (most recent call last): File "/tmp/tmprd31m7fp/tmpqkf_ieg3.py", line 3, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s503982419
p02571
u033095730
1598959325
Python
PyPy3 (7.3.0)
py
Runtime Error
357
81076
161
s=input() t=input() ls=len(s) lt=len(t) a=[0]*(ls-lt) for i in range(ls-lt): for j in range(lt): if s[i+j]!=t[j]: a[i]+=1 print(min(a))
Traceback (most recent call last): File "/tmp/tmp81_rri0s/tmpwz_e3lz_.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s217302183
p02571
u695197008
1598941411
Python
Python (3.8.2)
py
Runtime Error
23
9036
213
S = input().strip() # novel T = input().strip() # substring x = len(T) ans = len(S) for i in range(len(S) - x): U = S[i:i+x] cost = sum(1 if U[k] != T[k] for k in range(x)) ans = min(ans, cost) print(ans)
File "/tmp/tmpjf8u5uik/tmp_wbuj1x0.py", line 8 cost = sum(1 if U[k] != T[k] for k in range(x)) ^^^^^^^^^^^^^^^^^ SyntaxError: expected 'else' after 'if' expression
s352539232
p02571
u802234211
1598902268
Python
Python (3.8.2)
py
Runtime Error
27
9104
235
vs = input() t = input() stri = [] mincount = -1 for i in range(len(s)-len(t)+1): count = 0 for j in range(len(t)): if(s[i+j] == t[j]): count+= 1 mincount = max(mincount,count) print(len(t) - mincount)
Traceback (most recent call last): File "/tmp/tmp0wyma0go/tmpyjnxobmt.py", line 1, in <module> vs = input() ^^^^^^^ EOFError: EOF when reading a line
s389502433
p02571
u680851063
1598901169
Python
Python (3.8.2)
py
Runtime Error
50
8992
209
s=input() t=input() for i in range(len(s)-len(t)): ans=10**9+7 miss=0 tmp=s[i:i+len(t)] for j in range(len(t)): if tmp[j]!=t[j]: miss+=1 ans=min(ans, miss) print(ans)
Traceback (most recent call last): File "/tmp/tmpwgjakl8j/tmp35iohb1l.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s695530937
p02571
u276765287
1598893290
Python
Python (3.8.2)
py
Runtime Error
25
9024
344
S, T = list(input().split()) s = len(S) t = len(T) l1 = [] l2 = [] n = 0 for i in range(n, s-t+1): ss = S[n:t + n] n += 1 m = 0 for x in ss: if x == T[m]: l1.append(1) m +=1 else: l1.append(0) m +=1 l2.append(sum(l1)) l1...
Traceback (most recent call last): File "/tmp/tmpzqyzifxd/tmpsuup7ftq.py", line 1, in <module> S, T = list(input().split()) ^^^^^^^ EOFError: EOF when reading a line
s825739584
p02571
u276765287
1598893076
Python
Python (3.8.2)
py
Runtime Error
26
9140
422
#!/usr/bin/env python # coding: utf-8 # In[55]: S, T = list(input().split()) s = len(S) t = len(T) l1 = [] l2 = [] n = 0 for i in range(n, s-t+1): ss = S[n:t + n] n += 1 m = 0 for x in ss: if x == T[m]: l1.append(1) m +=1 else: l1.appen...
Traceback (most recent call last): File "/tmp/tmpcrs_43eq/tmpq0l3q5w3.py", line 7, in <module> S, T = list(input().split()) ^^^^^^^ EOFError: EOF when reading a line
s130581169
p02571
u471320955
1598891195
Python
Python (3.8.2)
py
Runtime Error
91
14424
199
s = input() t = input() lists = list() for i in range(len(s)-len(t)): ans = 0 for j in range(len(t)-1): if s[i+j] == t[j]: ans = ans + 1 lists.append(ans) print(len(t)-max(lists))
Traceback (most recent call last): File "/tmp/tmpeyf6g3nu/tmpd7noftdc.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line