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
s830353447
p02571
u743878367
1598733191
Python
Python (3.8.2)
py
Runtime Error
21
8988
201
S = input() T = input() for i in range(len(S)-len(T)+1): sub_S = S[i:i+len(T)] cnt = 0 for j in range(len(T)): if sub_S[j] != T[j]: cnt += 1 cnt_list.append(cnt) print(min(cnt_list))
Traceback (most recent call last): File "/tmp/tmpnwi7h5jq/tmprfw35a8o.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s668588434
p02571
u857673087
1598733191
Python
Python (3.8.2)
py
Runtime Error
29
9028
185
S = input() T = input() for i in range(len(T)): if i == 0: if T[:len(T)-i] in S: print(0) else: if T[:len(T)-i] in S and S[len(T)-i+1] != T[:len(T)-i]: print(i)
Traceback (most recent call last): File "/tmp/tmpt0tpldhz/tmpldr6hqm4.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s748911523
p02571
u269767135
1598733154
Python
Python (3.8.2)
py
Runtime Error
31
8996
398
S = str(input()) T = str(input()) len_s = len(S) len_t = len(T) cnt = len_t c = 0 if len_s == len_t: for j in range(len_t): if S[j] != T[j]: c += 1 cnt = min(c, cnt) else: for i in range(len_s - len_t): c = 0 for j in range(i, i+len_t): if S[j] != T...
Traceback (most recent call last): File "/tmp/tmptk3hno7v/tmpvxbnny0f.py", line 1, in <module> S = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s833193138
p02571
u207582576
1598733136
Python
Python (3.8.2)
py
Runtime Error
26
8968
218
S, T = input().split() n = len(S) - len(T) + 1 moji = len(T) for a in range(n): count = 0 for b in range(len(T)): if S[a+b] != T[b]: count += 1 if count < moji: moji = count print(moji)
File "/tmp/tmpiip8bper/tmp485qgy86.py", line 8 for b in range(len(T)): TabError: inconsistent use of tabs and spaces in indentation
s173243730
p02571
u743878367
1598733131
Python
Python (3.8.2)
py
Runtime Error
28
9072
192
S = input() T = input() for i in range(len(S)-len(T)+1): sub_S = S[i:i+len(T)] cnt = 0 for j in range(len(T)): if sub_S[j] != T[j]: cnt += 1 cnt_list.append(cnt) print(min(cnt_list))
Traceback (most recent call last): File "/tmp/tmpvzbxlx5w/tmpncq78whm.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s027367839
p02571
u561615664
1598733121
Python
PyPy3 (7.3.0)
py
Runtime Error
147
74676
187
N=int(input()) A=list(map(int, input().split())) p,S = 0,0 for i in range(N-1): ap = A.pop(0) AA = sum(A) aa = ap*AA a = aa%1000000007 S += a p = S%1000000007 print(p)
Traceback (most recent call last): File "/tmp/tmpyb7suri3/tmp28w8e62x.py", line 1, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s823642432
p02571
u663404111
1598733100
Python
PyPy3 (7.3.0)
py
Runtime Error
499
78164
489
import random, string def randomname(n): randlst = [random.choice(string.ascii_letters + string.digits) for i in range(n)] return ''.join(randlst) S = input() T = input() l = len(T) L = len(S) before = randomname(l) after = randomname(l) for i in range(l): before[i] = '.' after[i] = '.' S = before + S + aft...
Traceback (most recent call last): File "/tmp/tmpvkug3lwo/tmp2xch782a.py", line 5, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s307825347
p02571
u206873502
1598733094
Python
Python (3.8.2)
py
Runtime Error
27
9056
326
T,S=input().split() Tlist=list(T) Slist=list(S) TL=len(Tlist) SL=len(Slist) c=0 ans=SL i=0 j=0 if S in T : ans=0 else: for i in range(TL-SL+1): for j in range(SL+1): if Tlist[j+i]!=Slist[j]: c=c+1 if ans>c: ans=c c=0 print...
Traceback (most recent call last): File "/tmp/tmp5791d2ql/tmpedbnsqrv.py", line 1, in <module> T,S=input().split() ^^^^^^^ EOFError: EOF when reading a line
s189248173
p02571
u567787624
1598733076
Python
PyPy3 (7.3.0)
py
Runtime Error
88
68512
260
n = input() m = input() lst = [] if m in n: print(0) else: for i in range(len(n) - len(m)): count = 0 for j in range(i, len(m) + i): if n[j] != m[j-i]: count += 1 lst.append(count) print(min(lst))
Traceback (most recent call last): File "/tmp/tmpv41m7aok/tmp4jdzm8ng.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s288440239
p02571
u990641144
1598733057
Python
Python (3.8.2)
py
Runtime Error
389
27168
638
import numpy as np S = input() T = input() if len(S)==0: print(0) else: tmp = np.zeros(len(T)) i=0 flg=True while flg: for j in range(i, len(T)): if T[i:j+1] in S: tmp[i] = j+1-i i = max(i + int(tmp[i]),i+1) if i >= len(T)-1: flg=Fal...
Traceback (most recent call last): File "/tmp/tmpy8p90lpa/tmp6f7_rn_h.py", line 2, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s079724737
p02571
u904811150
1598733037
Python
Python (3.8.2)
py
Runtime Error
36
9688
585
import re S = input() T = input() start = time.time() ans_list = [] a = '.'*len(T) for i in range(len(T)): if i == 0: b = T[i] + a[i+1:] elif i == len(T)-1: b = a[:i] + T[i] else: b = a[:i] + T[i] + a[i+1:] s = re.findall(b, S) if len(s) >= 1: for j in range...
Traceback (most recent call last): File "/tmp/tmpwc0x03_0/tmp6h9n6oet.py", line 3, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s182117342
p02571
u743878367
1598733032
Python
Python (3.8.2)
py
Runtime Error
26
9072
176
for i in range(len(S)-len(T)+1): sub_S = S[i:i+len(T)] cnt = 0 for j in range(len(T)): if sub_S[j] != T[j]: cnt += 1 cnt_list.append(cnt) print(min(cnt_list))
Traceback (most recent call last): File "/tmp/tmpwdz5uck6/tmpvftwrigq.py", line 1, in <module> for i in range(len(S)-len(T)+1): ^ NameError: name 'S' is not defined
s186510049
p02571
u207582576
1598732995
Python
Python (3.8.2)
py
Runtime Error
23
8860
209
S, T = input().split() n = len(S) - len(T) + 1 min = len(T) for a in range(n): count = 0 for b in range(len(T)): if S[a+b] != T[b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmpxw2z0nlv/tmp00ik6gr9.py", line 8 for b in range(len(T)): TabError: inconsistent use of tabs and spaces in indentation
s134408644
p02571
u692657167
1598732951
Python
PyPy3 (7.3.0)
py
Runtime Error
82
68660
239
s = input() t = input() ls = len(s) lt = len(t) a = [] sum_ = 0 for i in range(ls-lt+1): ss = s[i:i+lt] sum_ = 0 for i, alb in enumerate(lt): if alb == ss[i]: sum_+= 1 a.append(sum_) print(lt - max(a))
Traceback (most recent call last): File "/tmp/tmpgmr034jm/tmpj68pfyzk.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s055989449
p02571
u206873502
1598732894
Python
Python (3.8.2)
py
Runtime Error
23
8936
314
T,S=input().split() Tlist=list(T) Slist=list(S) TL=len(Tlist) SL=len(Slist) c=0 ans=SL if S in T : ans=0 else: for i in range(TL-SL): for j in range(SL): if Tlist[j+i]!=Slist[j]: c=c+1 if ans>c: ans=c c=0 print(ans)
Traceback (most recent call last): File "/tmp/tmptpduno6k/tmp4bood5vp.py", line 1, in <module> T,S=input().split() ^^^^^^^ EOFError: EOF when reading a line
s203304231
p02571
u207582576
1598732892
Python
Python (3.8.2)
py
Runtime Error
23
8972
223
s = input().split() n = len(s[0]) - len(s[1]) + 1 min = len(s[1]) for a in range(n): count = 0 for b in range(len(s[1])): if s[0][a+b] != s[1][b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmpky1dcx5j/tmpsqeivohe.py", line 8 for b in range(len(s[1])): TabError: inconsistent use of tabs and spaces in indentation
s280076510
p02571
u886610768
1598732866
Python
Python (3.8.2)
py
Runtime Error
155
9068
608
s = input() t = input() counts = list() for i in range(len(t)): count = len(t) kari_count = len(t) for j in range(len(s)): if((len(s) - j + 2) == (len(t) - i )): break if(j < i): continue elif(t[i] == s[j]): kari_count = i for k in ran...
Traceback (most recent call last): File "/tmp/tmp3ovaank6/tmpj3rmgjz3.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s214175694
p02571
u945342410
1598732785
Python
Python (3.8.2)
py
Runtime Error
2206
12224
520
S = input() T = input() if T in S: print(0) else: sList = list(S) tList = list(T) numList = [] for ti,t in enumerate(tList): for si,s in enumerate(sList): num = 0 tnum = ti snum = si while True: if tList[tnum] != sList[snum]: break num += 1 tnum += 1 ...
Traceback (most recent call last): File "/tmp/tmpzuf6mgnd/tmpv5h1d0on.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s578570748
p02571
u924915048
1598732782
Python
Python (3.8.2)
py
Runtime Error
28
8904
209
S, T = input().split("\n") for i in range(len(T)): k=int(len(T)//i for j in range(k): if S[k-1:k-1+j] in T: p=j continue else: break answer = len(S)-p print(answer)
File "/tmp/tmp8cxolu5p/tmpeth3i5hk.py", line 3 k=int(len(T)//i ^ SyntaxError: '(' was never closed
s241878622
p02571
u710282484
1598732738
Python
PyPy3 (7.3.0)
py
Runtime Error
85
68780
204
s=str(input()) t=str(input()) ans=0 f=[] g=len(s) h=len(t) n=g-h for i in range(n): for j in range(h): if s[i+j]!=t[j]: ans+=1 f.append(ans) ans=0 f.sort() print(f[0])
Traceback (most recent call last): File "/tmp/tmp790d1m4u/tmpew6w9kgb.py", line 1, in <module> s=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s482668338
p02571
u207582576
1598732733
Python
Python (3.8.2)
py
Runtime Error
24
8952
267
x = [input() for i in range(2)] S = list(x[0]) T = list(x[1]) n = int(len(S)) - int(len(T)) + 1 min = int(len(T)) for a in range(n): count = 0 for b in range(int(len(T))): if S[a+b] != T[b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmp_ujx8jll/tmp3yn0e__a.py", line 10 for b in range(int(len(T))): TabError: inconsistent use of tabs and spaces in indentation
s707158929
p02571
u551967750
1598732728
Python
Python (3.8.2)
py
Runtime Error
25
9060
478
import sys s = input() t = input() if t in s: print(0) sys.exit() s1={i for i in a} s2={i for i in b} if len(s1&s2)==0: print(len(t)) sys.exit() unmatch=10000 for i in range(len(t)): for j in range(i,len(s)-(len(t)-i-1)): if t[i] == s[j]: buf=i for l in range(len(t)-i-1): if t[i...
Traceback (most recent call last): File "/tmp/tmpkxjpmiy6/tmpfntidfbo.py", line 3, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s284817619
p02571
u206873502
1598732714
Python
Python (3.8.2)
py
Runtime Error
21
9040
315
T,S=input().split() Tlist=list(T) Slist=list(S) TL=len(Tlist) SL=len(Slist) c=0 ans=SL if S in T : ans=0 else: for i in range(TL-SL): for j in range(SL): if Tlist[j+i]!=Slist[j]: c=c+1 if ans>c: ans=c c=0 print(ans)
Traceback (most recent call last): File "/tmp/tmpjipeyda7/tmpdhvzqyev.py", line 2, in <module> T,S=input().split() ^^^^^^^ EOFError: EOF when reading a line
s919109086
p02571
u577460726
1598732698
Python
Python (3.8.2)
py
Runtime Error
272
13168
531
import re S, T = [str(input()) for _ in range(2)] index_list = [] count_list = [] match_count = 0 if T in S: print(0) else: index = 0 counter = 0 for s in S: for m in re.finditer(str(s), str(T)): if index >= m.start(): if m.start() - 1 in index_list: counter += 1 else: ...
Traceback (most recent call last): File "/tmp/tmplgred3w2/tmp2x2n284_.py", line 3, in <module> S, T = [str(input()) for _ in range(2)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmplgred3w2/tmp2x2n284_.py", line 3, in <listcomp> S, T = [str(input()) for _ in range(2)] ^^^^^^^ EOF...
s384242846
p02571
u016753669
1598732634
Python
Python (3.8.2)
py
Runtime Error
27
9068
73
S,T = input.split() for i in S: for j in T: if i == j: k +=1
Traceback (most recent call last): File "/tmp/tmpe7mx2k1a/tmp2q3fahmp.py", line 1, in <module> S,T = input.split() ^^^^^^^^^^^ AttributeError: 'builtin_function_or_method' object has no attribute 'split'
s122502936
p02571
u551967750
1598732630
Python
Python (3.8.2)
py
Runtime Error
26
9084
478
import sys s = input() t = input() if t in s: print(0) sys.exit() s1={i for i in a} s2={i for i in b} if len(s1&s2)==0: print(len(t)) sys.exit() unmatch=10000 for i in range(len(t)): for j in range(i,len(s)-(len(t)-i-1)): if t[i] == s[j]: buf=i for l in range(len(t)-i-1): if t[i...
Traceback (most recent call last): File "/tmp/tmp0n9oi3d3/tmp16a4cqjh.py", line 3, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s872317289
p02571
u663404111
1598732623
Python
PyPy3 (7.3.0)
py
Runtime Error
102
69604
467
S = input() T = input() l = len(T) L = len(S) max_ans = -1 for i in range(l): for j in range(l-i): ans = 0 if T[i+j] == S[j]: ans += 1 max_ans = max(max_ans, ans) for i in range(L - l): for j in range(l): ans = 0 if T[j] == S[j+i]: ans += 1 max_ans = max(max_ans,...
Traceback (most recent call last): File "/tmp/tmp592vfyiw/tmpbx2vt3kz.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s201246418
p02571
u585899133
1598732605
Python
Python (3.8.2)
py
Runtime Error
2210
209436
494
import re S = input() T = input() ast = [] for i in range(len(T)): stra = "" for k in range(i): stra = stra + "." ast.append(stra) flag = False if T in S: print(0) else: for i in range(1, len(T) + 1): if flag: break for s in range(len(T) + 1 - i): ...
Traceback (most recent call last): File "/tmp/tmpnhb6opi0/tmp5o7lesxj.py", line 2, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s402171218
p02571
u207582576
1598732599
Python
Python (3.8.2)
py
Runtime Error
20
8860
252
x = [input() for i in range(2)] S = list(x[0]) T = list(x[1]) n = 0 n = len(S) - len(T) + 1 min = len(T) for a in range(n): count = 0 for b in range(len(T)): if S[a+b] != T[b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmpdmhoml0n/tmpihvyvwkw.py", line 10 for b in range(len(T)): TabError: inconsistent use of tabs and spaces in indentation
s159876085
p02571
u885315507
1598732574
Python
Python (3.8.2)
py
Runtime Error
70
8980
239
S = input() T = input() L = len(S) l = len(T) r = [] for i in range(L - l): x = 0 for k in range(i, i + l): if S[k] == T[k - i]: x += 1 else: x += 0 r.append(x) y = max(r) print(l - y)
Traceback (most recent call last): File "/tmp/tmp1rf78241/tmp6kbaompj.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s496184697
p02571
u991542950
1598732573
Python
PyPy3 (7.3.0)
py
Runtime Error
87
74664
257
import sys input = sys.stdin.readline S = input() T = input() score_list = [] for i in range(len(S) - len(T)): s = S[i:i+len(T)] score = 0 for i in range(len(s)): if s[i] != T[i]: score += 1 score_list.append(score) print(min(score_list))
Traceback (most recent call last): File "/tmp/tmpto7uar5i/tmpww_la56i.py", line 13, in <module> print(min(score_list)) ^^^^^^^^^^^^^^^ ValueError: min() arg is an empty sequence
s925127504
p02571
u206873502
1598732551
Python
Python (3.8.2)
py
Runtime Error
24
8992
306
T,S=input().split() Tlist=list(T) Slist=list(S) TL=len(Tlist) SL=len(Slist) c=0 ans=SL if S in T : ans=0 else: for i in range(TL-SL): for j in range(SL): if Tlist[j+i]!=Slist[j]: c=c+1 if ans>c: ans=c c=0 print(ans)
Traceback (most recent call last): File "/tmp/tmpiijj8hrp/tmpxl0ulvha.py", line 1, in <module> T,S=input().split() ^^^^^^^ EOFError: EOF when reading a line
s892888825
p02571
u734195782
1598732544
Python
Python (3.8.2)
py
Runtime Error
26
8940
809
#include <stdio.h> #include <string.h> int main(void){ char s[1000]; char t[1000]; scanf("%s",s); scanf("%s",t); int m[strlen(s)]; for(int i = 0; i < strlen(s); i++){ m[i] = 0; } for(int i = 0; i < strlen(s); i++){ for(int j = 0; j < strlen(t); j++){ if(s[i] ...
File "/tmp/tmpxxwjy27p/tmptrr2tcy9.py", line 4 int main(void){ ^^^^ SyntaxError: invalid syntax
s353352355
p02571
u072717685
1598732530
Python
Python (3.8.2)
py
Runtime Error
459
27492
465
import sys read = sys.stdin.read readlines = sys.stdin.readlines def main(): s = input() t = input() if t in s: print(0) sys.exit() lent = len(t) lens = len(s) res = [] for i1 in range(lent): for i2 in range(lent, i1, -1): end = lens - (lent - i2) ...
Traceback (most recent call last): File "/tmp/tmpjek5uks_/tmpt8be65v_.py", line 23, in <module> main() File "/tmp/tmpjek5uks_/tmpt8be65v_.py", line 5, in main s = input() ^^^^^^^ EOFError: EOF when reading a line
s589527164
p02571
u885315507
1598732525
Python
Python (3.8.2)
py
Runtime Error
72
9056
206
S = input() T = input() L = len(S) l = len(T) r = [] for i in range(L - l): x = 0 for k in range(i, i + l): if S[k] == T[k - i]: x += 1 r.append(x) y = max(r) print(l - y)
Traceback (most recent call last): File "/tmp/tmp338mh9t6/tmpc606kf_c.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s029217859
p02571
u325660636
1598732470
Python
Python (3.8.2)
py
Runtime Error
67
9100
242
s = list(input()) t = list(input()) r = len(s) - len(t) l = [] for start in range(r): count = 0 for i in range(len(t)): if t[i] == s[start+i]: count +=1 l.append(count) ans = len(t)- max(l) print(ans)
Traceback (most recent call last): File "/tmp/tmp9qss9vxc/tmpwxa511_l.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s686274396
p02571
u882514852
1598732468
Python
Python (3.8.2)
py
Runtime Error
960
137896
223
S = input() T = input() t = len(T) for i in range(len(T)): a = 0 b = 0 for s in range(len(T)): if T[s:s+i+1] in S[s:len(S)-s]: b += 1 print(s,b,T[s:s+i+1],S[s:len(S)-s]) if b == 0: break print(t-i)
Traceback (most recent call last): File "/tmp/tmpu0gdppnh/tmpuonrlgju.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s110580591
p02571
u945342410
1598732468
Python
Python (3.8.2)
py
Runtime Error
2206
13308
443
sList = list(input()) tList = list(input()) numList = [] for ti,t in enumerate(tList): for si,s in enumerate(sList): num = 0 tnum = ti snum = si while True: if tList[tnum] != sList[snum]: break num += 1 tnum += 1 snum += 1 if tnum+1 >= len(tList): break if tnum+1 ...
Traceback (most recent call last): File "/tmp/tmp1c6881yt/tmp3dox786u.py", line 1, in <module> sList = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s263842827
p02571
u207582576
1598732452
Python
Python (3.8.2)
py
Runtime Error
29
8864
236
x = input().split() S = list(x[0]) T = list(x[1]) n = 0 n = len(S) - len(T) + 1 min = t for a in range(n): count = 0 for b in range(len(T)): if S[a+b] != T[b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmpz961tx2q/tmp3q7w8obk.py", line 10 for b in range(len(T)): TabError: inconsistent use of tabs and spaces in indentation
s198708509
p02571
u514334797
1598732391
Python
Python (3.8.2)
py
Runtime Error
2187
137872
350
S = input() T = input() for i in range(len(T)+1): lT = len(T)-i+1 sT = 0 while lT != len(T)+1: print(T[sT:lT]) print(S[sT:len(S)]) print(T[sT:lT] in S[sT:len(S)]) if T[sT:lT] in S[sT:len(S)]: print(i-1) exit() else: sT += 1 ...
Traceback (most recent call last): File "/tmp/tmp6nt5kdkk/tmp1ep66ysk.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s294371604
p02571
u207582576
1598732371
Python
Python (3.8.2)
py
Runtime Error
25
9036
243
x = input().split() S = list(x[0]) T = list(x[1]) s = len(S) t = len(T) n = 0 n = s - t + 1 min = t for a in range(n): count = 0 for b in range(t): if S[a+b] != T[b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmpsb__myz8/tmpno1mrjaf.py", line 12 for b in range(t): TabError: inconsistent use of tabs and spaces in indentation
s205783578
p02571
u685684561
1598732363
Python
Python (3.8.2)
py
Runtime Error
51
8952
346
S=str(input()) T=str(input()) t=1000 for i in range(1000): try: k=S[i] except IndexError: Slen=i break for j in range(1000): try: k=T[j] except IndexError: Tlen=j break for i in range(Slen-Tlen+1): s=0 for j in range(Tlen): if S[i+j]==T[j]: s+=1 else: continue ...
Traceback (most recent call last): File "/tmp/tmp3d9usgc1/tmpe8bfhv9f.py", line 1, in <module> S=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s922808847
p02571
u168832623
1598732345
Python
PyPy3 (7.3.0)
py
Runtime Error
90
68740
453
S = input() T = input() n_s = len(S) n_t = len(T) t = T[0:n] # A = [] boolean = False for i in range(n_t): for j in range(0,i+1): t = T[j:(j+n_t-i)] # A.append(t) i_s = S.find(t) i_t = T.find(t) # print(t,i_t,i_s,len(T[i_t:]),len(T[i_s:]) ) if t in S: if (i_t <= i_s) and (len(T[i_t:])...
Traceback (most recent call last): File "/tmp/tmpplxguasf/tmpiendcxer.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s383797183
p02571
u623814058
1598732259
Python
Python (3.8.2)
py
Runtime Error
34
9660
416
S=input() T=input() import re def x(): for i in range(len(T),0,-1): # 文字列の長さ for j in range(len(T)-i): # T検索の開始位置=その前にある文字数 t=T[j:i+j] for m in re.finditer(t, S): p=m.start() if p!=-1: if j<=p and len(T)-j-1 <=len(S)-p-1: ...
Traceback (most recent call last): File "/tmp/tmplmr0xise/tmp9z5o3rrw.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s232695605
p02571
u207582576
1598732249
Python
Python (3.8.2)
py
Runtime Error
27
8944
309
#S, T = [str(i) for i in input().split()] x = input().split() S = x[0] T = x[1] s = list(S) t = list(T) s_n = len(s) t_n = len(t) n = 0 n = s_n - t_n + 1 min = t_n for a in range(n): count = 0 for b in range(t_n): if S[a+b] != T[b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmp9vkd85a9/tmpw0zdzh6v.py", line 15 for b in range(t_n): TabError: inconsistent use of tabs and spaces in indentation
s802783411
p02571
u942388574
1598732242
Python
Python (3.8.2)
py
Runtime Error
63
9032
357
# -*- coding: utf-8 -*- """ Created on Sat Aug 29 21:12:17 2020 @author: naoki """ import sys sys.setrecursionlimit(10**8) S = input() T = input() count = [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]: count[i]+=1 count = sorted(...
Traceback (most recent call last): File "/tmp/tmpjfmhrfr5/tmphs5sboqm.py", line 11, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s433419956
p02571
u718499330
1598732240
Python
Python (3.8.2)
py
Runtime Error
26
8992
155
s = input() t = input() i = 0 for ind, x in enumerate(s): if x==t[0]: i = ind y = 0 cnt= 0 for x in s[i:]: if x!=t[y]: cnt+=1 y+=1 print(cnt)
Traceback (most recent call last): File "/tmp/tmpsecbnuiy/tmp65f0_1ov.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s691792514
p02571
u702978795
1598732189
Python
Python (3.8.2)
py
Runtime Error
28
9196
348
N, M = map(int, input().split()) P = [input().split() for i in range(M)] S = P[0] T = P[1] s_len = len(S) t_len = len(T) max_y = 0 for x in range(s_len - t_len): y = 0 for t in T: if t == S[x]: y = y+1 x = x+1 else: x = x+1 if max_y <= y: max...
Traceback (most recent call last): File "/tmp/tmp75d8mxzx/tmpfzuf5er7.py", line 1, in <module> N, M = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s984704131
p02571
u477946982
1598732181
Python
PyPy3 (7.3.0)
py
Runtime Error
84
68724
84
import Levenshtein s = input() t = input() print((Levenshtein.distance(s, t)) / 3)
Traceback (most recent call last): File "/tmp/tmpnowxec7e/tmpizse7nx0.py", line 1, in <module> import Levenshtein ModuleNotFoundError: No module named 'Levenshtein'
s729363682
p02571
u423389475
1598732134
Python
PyPy3 (7.3.0)
py
Runtime Error
88
68784
183
s = list(input()) t = list(input()) ans = [] for i in range(len(s)-len(t)): ans.append(0) 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/tmptoch7rpm/tmpteav072n.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s068675057
p02571
u994432541
1598732120
Python
PyPy3 (7.3.0)
py
Runtime Error
77
68660
232
S = input() T = input() Sli = list(S) Tli = list(T) cli = [] for i in range(len(Sli) - len(Tli)): c = len(Tli) for j in range(len(Tli)): if Sli[i + j] == Tli[j]: c -= 1 cli.append(c) print(min(cli))
Traceback (most recent call last): File "/tmp/tmpnzu25mdk/tmp20icenty.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s238776012
p02571
u207582576
1598732081
Python
Python (3.8.2)
py
Runtime Error
25
8984
293
S, T = [str(i) for i in input().split()] #s = list(S) #t = list(T) #s_n = len(s) #t_n = len(t) #n = 0 #n = s_n - t_n + 1 #min = t_n #for a in range(n): #count = 0 #for b in range(t_n): #if S[a+b] != T[b]: #count += 1 #if count < min: #min = count #print(min)
Traceback (most recent call last): File "/tmp/tmp6lmp3pog/tmpc9cnpm49.py", line 1, in <module> S, T = [str(i) for i in input().split()] ^^^^^^^ EOFError: EOF when reading a line
s394729188
p02571
u658870101
1598732059
Python
PyPy3 (7.3.0)
py
Runtime Error
173
69004
143
from difflib import SequenceMatcher S = input() T = input() s = SequenceMatcher(None, T, S) print(len(T) - s.find_longest_match(0, 3, 0, 6)[2])
Traceback (most recent call last): File "/tmp/tmpn26hjfnt/tmpy9jtpowr.py", line 2, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s281416159
p02571
u648374449
1598732036
Python
Python (3.8.2)
py
Runtime Error
29
8908
201
s=input() t=input() print(s) a = len(s) b = len(t) c = a-b; min1 = 0; min2 = 0; for i in range(c): for j in range(b): if s[j]==t[i+j]: min2 += 1 if min1>min2: min1 = min2 print(min1)
Traceback (most recent call last): File "/tmp/tmpotdi__on/tmpdtkh78z_.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s171896818
p02571
u942388574
1598731946
Python
Python (3.8.2)
py
Runtime Error
64
8856
357
# -*- coding: utf-8 -*- """ Created on Sat Aug 29 21:12:17 2020 @author: naoki """ import sys sys.setrecursionlimit(10**6) S = input() T = input() count = [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]: count[i]+=1 count = sorted(...
Traceback (most recent call last): File "/tmp/tmpgaob8ytq/tmpkw9iyqq8.py", line 11, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s261103479
p02571
u902426510
1598731916
Python
Python (3.8.2)
py
Runtime Error
25
8984
934
s = input() t = input() if t in s: print(0) else: ans = len(t) for i in range(len(t)): for j in range(len(s)): if t[i] == s[j]: if ((len(t) - i) <= (len(s) - j)) and i <= j: k = i + 1 l = j + 1 cnt1 = 0 ...
File "/tmp/tmp02btu5a9/tmp3tehhfl3.py", line 29 if (len(t) - i) > (len(s) - j)): ^ SyntaxError: unmatched ')'
s261682807
p02571
u508061226
1598731891
Python
Python (3.8.2)
py
Runtime Error
422
8968
201
import itertools s = input() t = input() A = itertools.combinations(list(range(len(t)+1)),2) for i in A: part = t[i[0]:i[1]] if part in s: ans = len(part) print(len(t) - ans)
Traceback (most recent call last): File "/tmp/tmp211vcjmi/tmpiv2ji63x.py", line 2, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s678249544
p02571
u990641144
1598731885
Python
Python (3.8.2)
py
Runtime Error
380
27228
517
import numpy as np S = input() T = input() tmp = np.zeros(len(T)) i=0 flg=True while flg: for j in range(i, len(T)): if T[i:j+1] in S: tmp[i] = j+1-i i = max(i + int(tmp[i]),i+1) if i >= len(T)-1: flg=False tmp = np.array(tmp, dtype=int) i = np.argmax(tmp) j = tmp[i] s = S.fi...
Traceback (most recent call last): File "/tmp/tmp2qjcktxd/tmpfjxfeghu.py", line 2, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s287299255
p02571
u508061226
1598731840
Python
Python (3.8.2)
py
Runtime Error
419
9040
200
import itertools s = input() t = input() A = itertools.combinations(list(range(len(t)+1)),2) for i in A: part = t[i[0]:i[1]] if part in s: ans = len(part) print(len(t) - ans)
Traceback (most recent call last): File "/tmp/tmpkvupd52w/tmpyriiglpq.py", line 2, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s259929117
p02571
u304058693
1598731814
Python
Python (3.8.2)
py
Runtime Error
922
147536
225
s = input() t = input() cnt = [] for i in range(len(t)): for k in range(i + 1, len(t) + 1): if t[i:k] in s[i:]: cnt.append(k - i) print(t[i:k], k - i) #print(cnt) print(len(t) - max(cnt))
Traceback (most recent call last): File "/tmp/tmpei09haq3/tmpeb_er291.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s670536160
p02571
u072717685
1598731812
Python
Python (3.8.2)
py
Runtime Error
486
27576
527
import sys read = sys.stdin.read readlines = sys.stdin.readlines from itertools import combinations_with_replacement def main(): s = input() t = input() if t in s: print(0) sys.exit() lent = len(t) com = combinations_with_replacement(range(lent+1), 2) res = [] for come in com...
Traceback (most recent call last): File "/tmp/tmp2u0re3jk/tmpu4zw90ur.py", line 23, in <module> main() File "/tmp/tmp2u0re3jk/tmpu4zw90ur.py", line 6, in main s = input() ^^^^^^^ EOFError: EOF when reading a line
s075723062
p02571
u207582576
1598731804
Python
Python (3.8.2)
py
Runtime Error
24
8956
278
S, T = [str(i) for i in input().split()] s = list(S) t = list(T) s_n = len(s) t_n = len(t) n = 0 n = s_n - t_n + 1 min = t_n for a in range(n): count = 0 for b in range(t_n): if S[a+b] != T[b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmpg_6gbns5/tmpg_e7auvv.py", line 13 for b in range(t_n): TabError: inconsistent use of tabs and spaces in indentation
s263116534
p02571
u249335194
1598731779
Python
Python (3.8.2)
py
Runtime Error
54
9048
524
s=input() t=input() S=[] c=0 for i in range(len(s)): if s[i] in t: c+=1 p=len(t)-1 q=t.index(s[i]) if q>i or i-q+p+1>len(s): pass else: s1=s[i-q:i+p-q+1] count=0 for j in range(len(s1)): ...
Traceback (most recent call last): File "/tmp/tmpfcmcy25u/tmp0nt0iefc.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s052926346
p02571
u508061226
1598731777
Python
Python (3.8.2)
py
Runtime Error
2171
137916
217
import itertools s = input() t = input() A = itertools.combinations(list(range(len(t)+1)),2) for i in A: part = t[i[0]:i[1]] print(part) if part in s: ans = len(part) print(len(t) - ans)
Traceback (most recent call last): File "/tmp/tmpllsw2mk9/tmp06pm4g_z.py", line 2, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s912747510
p02571
u243815850
1598731774
Python
Python (3.8.2)
py
Runtime Error
628
27480
294
ST = [input() for i in range(2)] S = ST[0] T = ST[1] num = [] for i in range(len(T)): _T = T[i:] for j in range(len(T)-i): _T_ = _T if j == 0 else _T[:-j] base = S[i:-j] if j != 0 else S[i:] if _T_ in base: num.append(len(T)-len(_T_)) print(min(num))
Traceback (most recent call last): File "/tmp/tmp71cumn7_/tmppe3jyjz9.py", line 1, in <module> ST = [input() for i in range(2)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmp71cumn7_/tmppe3jyjz9.py", line 1, in <listcomp> ST = [input() for i in range(2)] ^^^^^^^ EOFError: EOF when reading a l...
s676521849
p02571
u707451177
1598731768
Python
Python (3.8.2)
py
Runtime Error
31
8996
320
s = input() t = input() strs = [] t_size = len(t) for i in np.arange(len(s)-len(t)+1): strs.append(s[i:i+t_size]) n = 0 max_n = 0 for ss in strs: for i in np.arange(len(t)): if t[i]==ss[i]: n += 1 else: n = 0 if max_n < n: max_n = n print(len(t)-max_n)
Traceback (most recent call last): File "/tmp/tmparlnzos0/tmpee8dub_1.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s441353365
p02571
u338632854
1598731760
Python
Python (3.8.2)
py
Runtime Error
93
14384
344
s = input() t = input() t_list = list(t) count_list = [] for i in range(len(s)-len(t)+1): string_first = s[i:len(t)+i] list_string = list(string_first) count = 0 for k in range(len(t)): if t_list[k] == list_string[k]: count += 1 count_list.append(count) print(l...
Traceback (most recent call last): File "/tmp/tmpaneogimu/tmp9zdi0pug.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s991342538
p02571
u508061226
1598731744
Python
Python (3.8.2)
py
Runtime Error
32
8816
199
s = input() t = input() A = itertools.combinations(list(range(len(t)+1)),2) for i in A: part = t[i[0]:i[1]] print(part) if part in s: ans = len(part) print(len(t) - ans)
Traceback (most recent call last): File "/tmp/tmpgkcp9rkc/tmp5p8f795c.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s171545855
p02571
u228636605
1598731724
Python
Python (3.8.2)
py
Runtime Error
71
8996
225
S = str(input()) T = str(input()) mini = [] for i in range(len(S) - len(T)): count = 0 for j in range(len(T)-1): if T[j] == S[j+i]: count+=1 mini.append(len(T) - count) print(min(mini))
Traceback (most recent call last): File "/tmp/tmp5ulel7tb/tmp5h7tnvem.py", line 1, in <module> S = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s069858929
p02571
u678071530
1598731724
Python
Python (3.8.2)
py
Runtime Error
24
8984
169
S=raw_input("Enter String:") T=raw_input("Enter String:") if(string.find(S)==-1): print("Substring not found in string!") else: print("Substring in string!")
Traceback (most recent call last): File "/tmp/tmprt1f05bc/tmpd11_mjr8.py", line 1, in <module> S=raw_input("Enter String:") ^^^^^^^^^ NameError: name 'raw_input' is not defined
s947050402
p02571
u707451177
1598731690
Python
Python (3.8.2)
py
Runtime Error
29
9012
226
s = input() t = input() n = 0 max_n = 0 for ss in strs: for i in np.arange(len(t)): if t[i]==ss[i]: n += 1 else: n = 0 if max_n < n: max_n = n print(len(t)-max_n)
Traceback (most recent call last): File "/tmp/tmpuznc67q7/tmpvzdy5btr.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s116276861
p02571
u207582576
1598731683
Python
Python (3.8.2)
py
Runtime Error
23
8928
275
S, T = [str(i) for i in input().split()] s = list(S) t = list(T) s_n = len(S) t_n = len(T) n = 0 n = s_n - t_n + 1 min = t for a in range(n): count = 0 for b in range(t_n): if S[a+b] != T[b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmp5kmrai5n/tmpk23ianp8.py", line 13 for b in range(t_n): TabError: inconsistent use of tabs and spaces in indentation
s327853141
p02571
u563453679
1598731663
Python
Python (3.8.2)
py
Runtime Error
68
10768
3426
import sys sys.setrecursionlimit(10 ** 6) input = sys.stdin.readline from math import floor, sqrt, factorial, hypot, log # log2ないyp from heapq import heappop, heappush, heappushpop from collections import Counter, defaultdict, deque from itertools import accumulate, permutations, combinations, product, combinations_w...
Traceback (most recent call last): File "/tmp/tmpwf19fna0/tmpiwhd0ovq.py", line 11, in <module> from fractions import gcd ImportError: cannot import name 'gcd' from 'fractions' (/root/miniconda3/envs/sandbox-runtime/lib/python3.11/fractions.py)
s858423013
p02571
u228636605
1598731598
Python
Python (3.8.2)
py
Runtime Error
73
9056
230
S = str(input()) T = str(input()) fg = 0 mini = [] for i in range(len(S) - len(T)): count = 0 for j in range(len(T)): if T[j] == S[j+i]: count+=1 mini.append(len(T) - count) print(min(mini))
Traceback (most recent call last): File "/tmp/tmphlvbycms/tmpoke5nf02.py", line 1, in <module> S = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s431377439
p02571
u687553041
1598731594
Python
Python (3.8.2)
py
Runtime Error
2486
137940
538
import sys if __name__ == '__main__': S = sys.stdin.readline().rstrip() T = sys.stdin.readline().rstrip() max_match = 0 for i in range(len(T)): for j in range(i+1, len(T)): # pos = S[i:-j].find(T[i:j]) pos = S[i:-(len(T)-j)].find(T[i:j]) print(S[i:-(len(T)-j)...
0
s460982891
p02571
u702978795
1598731584
Python
Python (3.8.2)
py
Runtime Error
28
8936
279
S, T = input().split() s_len = len(S) t_len = len(T) max_y = 0 for x in range(s_len - t_len): y = 0 for t in T: if t == S[x]: y = y+1 x = x+1 else: x = x+1 if max_y <= y: max_y = y print(t_len - max_y)
Traceback (most recent call last): File "/tmp/tmp6c71oh11/tmpkcq53b2_.py", line 1, in <module> S, T = input().split() ^^^^^^^ EOFError: EOF when reading a line
s693833717
p02571
u999529302
1598731579
Python
PyPy3 (7.3.0)
py
Runtime Error
77
68664
221
S = input() T = input() x = 0 y = 0 for i in range(len(S)): if T[0] == S[i]: x += (i+1) break else: pass for r in range(int(len(T)-1)): if T[int(r+1)] == S[int(r+x)]: pass else: y += 1 print(y)
Traceback (most recent call last): File "/tmp/tmp8mgyt49w/tmptzagucek.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s624395475
p02571
u685684561
1598731569
Python
Python (3.8.2)
py
Runtime Error
47
8964
352
S=str(input()) T=str(input()) t=1000 for i in range(1000): try: k=S[i] except IndexError: Slen=i break for j in range(1000): try: k=T[j] except IndexError: Tlen=j break lists=[] for i in range(Slen-Tlen): s=0 for j in range(Tlen): if S[i+j]==T[j]: s+=1 else: cont...
Traceback (most recent call last): File "/tmp/tmplq64_87s/tmpk6_39puq.py", line 1, in <module> S=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s291072763
p02571
u710282484
1598731563
Python
PyPy3 (7.3.0)
py
Runtime Error
102
68660
201
s=str(input()) t=str(input()) ans=0 f=[] g=len(s) h=len(t) for i in range(g-h): for j in range(h): if s[i+j]!=t[j]: ans+=1 f.append(ans) ans=0 f.sort() print(f[0])
Traceback (most recent call last): File "/tmp/tmpn3jzqua3/tmppywh6iie.py", line 1, in <module> s=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s914627663
p02571
u304058693
1598731538
Python
Python (3.8.2)
py
Runtime Error
444
21308
215
s = input() t = input() cnt = [] for i in range(len(t)): for k in range(i + 1, len(t)): if t[i:k] in s[i:]: cnt.append(k - i) #print(t[i:k]) #print(cnt) print(len(t) - max(cnt))
Traceback (most recent call last): File "/tmp/tmpetks9yo6/tmp4ky_zv_h.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s121493065
p02571
u234454594
1598731536
Python
Python (3.8.2)
py
Runtime Error
71
9052
252
s=input() t=input() sz=len(t) ans=100000000000 for i in range(0,len(s)-sz): k=s[i:i+sz] c=0 for j in range(sz): if k[j]==t[j]: c+=1 else: ans=min(ans,sz-c) # print(c) ans=min(ans,sz-c) print(ans)
Traceback (most recent call last): File "/tmp/tmpu113t06f/tmpph4uog6y.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s642252075
p02571
u710282484
1598731520
Python
PyPy3 (7.3.0)
py
Runtime Error
106
68640
200
s=str(input()) t=str(input()) ans=0 f=[] g=len(s) h=len(t) for i in range(g-h): for j in range(h): if s[i+j]!=t[j]: ans+=1 f.append(ans) ans=0 f.sort() print(int(f[0]))
Traceback (most recent call last): File "/tmp/tmpd9w0c7dl/tmpixcfykda.py", line 1, in <module> s=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s998016106
p02571
u137191729
1598731503
Python
PyPy3 (7.3.0)
py
Runtime Error
483
88188
451
def inp(): return(int(input())) def inlt(): return(list(map(int,input().split()))) def insr(): s = input() return(list(s[:len(s) ])) def invr(): return(map(int,input().split())) I = input() first = s[0] second = s[1] vec = c() i=0 while len(vec)==0 & i < len(second)-1: j = len(second)- i fo...
File "/tmp/tmp_z7l12l8/tmp79k5bdyu.py", line 19 for k in range(1,i+1) ^ SyntaxError: expected ':'
s885175868
p02571
u119015607
1598731404
Python
Python (3.8.2)
py
Runtime Error
84
14548
421
S= input() T= input() if len(S) ==1: if S==T: print(0) else: print(1) else: l=[] for i in range(len(S)-len(T)+1): A=S[i:i+(len(T))] #print(A) count=0 for j in range(len(A)): if A[j] == T[j]: count+=1 #prin...
Traceback (most recent call last): File "/tmp/tmpdl71l_gr/tmp5wtkh9dq.py", line 1, in <module> S= input() ^^^^^^^ EOFError: EOF when reading a line
s100722960
p02571
u706659319
1598731398
Python
PyPy3 (7.3.0)
py
Runtime Error
81
68684
253
S = input() T = input() LS = len(S) LT = len(T) L = [] if T in S: print(0) else: for ls in range(LS - LT): d = 0 for lt in range(LT): if S[ls + lt] != T[lt]: d += 1 L.append(d) print(min(L))
Traceback (most recent call last): File "/tmp/tmpeywirt0q/tmpe3dvq_zg.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s675567269
p02571
u274755552
1598731388
Python
Python (3.8.2)
py
Runtime Error
33
9848
182
from difflib import SequenceMatcher s, t = map(str, input().split()) match = SequenceMatcher(None, s, t).find_longest_match(0, len(s), 0, len(t)) ans = len(t) - match.size print(ans)
Traceback (most recent call last): File "/tmp/tmpx6ljinrm/tmp1_agxu60.py", line 2, in <module> s, t = map(str, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s644991006
p02571
u137191729
1598731387
Python
PyPy3 (7.3.0)
py
Runtime Error
372
87428
431
def inp(): return(int(input())) def inlt(): return(list(map(int,input().split()))) def insr(): s = input() return(list(s[:len(s) ])) def invr(): return(map(int,input().split())) I = input() first = s[0] second = s[1] vec = c() i=0 while len(vec)==0: j = len(second)- i for k in range(1,i+1) ...
File "/tmp/tmptpm37nep/tmpbp_no9h3.py", line 19 for k in range(1,i+1) ^ SyntaxError: expected ':'
s811386660
p02571
u207582576
1598731364
Python
Python (3.8.2)
py
Runtime Error
26
8920
236
S, T = [str(i) for i in input().split()] s = len(S) t = len(T) n = s - t + 1 min = t for a in range(n): count = 0 for b in range(t): if S[a+b] != T[b]: count += 1 if count < min: min = count print(min)
File "/tmp/tmpkga7qnkh/tmp9it81paj.py", line 10 for b in range(t): TabError: inconsistent use of tabs and spaces in indentation
s521688464
p02571
u072717685
1598731355
Python
Python (3.8.2)
py
Runtime Error
469
28856
515
import sys read = sys.stdin.read readlines = sys.stdin.readlines from itertools import combinations_with_replacement def main(): s = input() t = input() if t in s: print(0) sys.exit() lent = len(t) com = combinations_with_replacement(range(lent+1), 2) res = [] for come in com...
Traceback (most recent call last): File "/tmp/tmpty5kpc4m/tmpj8r8vx2z.py", line 24, in <module> main() File "/tmp/tmpty5kpc4m/tmpj8r8vx2z.py", line 6, in main s = input() ^^^^^^^ EOFError: EOF when reading a line
s205952902
p02571
u710282484
1598731317
Python
PyPy3 (7.3.0)
py
Runtime Error
113
68584
232
s=str(input()) t=str(input()) ans=0 f=[] r=0 g=len(s) h=len(t) for i in range(g-h): for j in range(h): if s[i+j]!=t[j]: ans+=1 else: r=+1 f.append(ans) ans=0 f.sort() print(f[0])
Traceback (most recent call last): File "/tmp/tmpi6dsyp7r/tmp18bfbun3.py", line 1, in <module> s=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s290378596
p02571
u013617325
1598731309
Python
Python (3.8.2)
py
Runtime Error
25
8928
372
S = str(input()) T = str(input()) suma=0 sumb=0 sumc=0 for i in range(len(T)): A = T[i:] B = T[:i+1] if A in S: pass else: suma+=1 if B in S: pass else: sumb+=1 if A in S: if B in S: pass else: sumc+=1 suma = min(suma, sum...
File "/tmp/tmpov3u9hmv/tmpxmmbbydm.py", line 31 ~ ^ SyntaxError: invalid syntax
s771784706
p02571
u897617509
1598731256
Python
Python (3.8.2)
py
Runtime Error
704
336724
780
s = input() t = input() sub_strings = [] for i in range(len(t)): num_strings = len(t) - i for j in range(i + 1): sub_strings.append({'start': j, 'string': t[j:j + num_strings]}) ans_sub = '' for sub_string in sub_strings: j = sub_string['start'] sub = sub_string['string'] if sub in s[j...
Traceback (most recent call last): File "/tmp/tmpny0_nakw/tmpetq5a0v4.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s599178511
p02571
u453306058
1598731251
Python
Python (3.8.2)
py
Runtime Error
56
9100
336
s = input() t = input() c = [] for i in range(len(s) - len(t) + 1): count = 0 for j in range(len(t)): if s[j+i] == t[j]: if flag: count += 1 else: count = 1 flag = True else: flag = False c.append(count) print(...
Traceback (most recent call last): File "/tmp/tmp_kic27ls/tmpb7kwsmnw.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s874571702
p02571
u414050834
1598731225
Python
Python (3.8.2)
py
Runtime Error
75
9088
208
s=str(input()) t=str(input()) n=len(t) m=len(s) ans=0 a=[] if t in s: print(0) else: for i in range(m-n-1): for j in range(n): if s[i+j]==t[j]: ans+=1 a.append(ans) print(n-max(a))
Traceback (most recent call last): File "/tmp/tmp828qlpd2/tmp3bbf5uh5.py", line 1, in <module> s=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s886249486
p02571
u685684561
1598731223
Python
Python (3.8.2)
py
Runtime Error
53
9144
354
S=str(input()) T=str(input()) t=1000 for i in range(1000): try: k=S[i] except IndexError: Slen=i break for j in range(1000): try: k=T[j] except IndexError: Tlen=j break lists=[] for i in range(Slen-Tlen+1): s=0 for j in range(Tlen): if S[i+j]==T[j]: s+=1 else: co...
Traceback (most recent call last): File "/tmp/tmp2fneekdm/tmpfx5__kir.py", line 1, in <module> S=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s109328890
p02571
u885315507
1598731204
Python
Python (3.8.2)
py
Runtime Error
74
9000
210
S = input() T = input() L = len(S) l = len(T) r = [] for i in range(L - l): x = 0 for k in range(i, i + l - 1): if S[k] == T[k - i]: x += 1 r.append(x) y = max(r) print(l - y)
Traceback (most recent call last): File "/tmp/tmpcwd0nwnh/tmpflx9kt6p.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s991068797
p02571
u216752093
1598731191
Python
Python (3.8.2)
py
Runtime Error
3641
138008
242
s=list(input()) t=list(input()) n=len(t) m=len(s) for i in range(n): l=n-i for j in range(i+1): print(t[j:j+l],i,s[j:j+m-i]) if ''.join(t[j:j+l]) in ''.join(s[j:j+m-i]): print(i) exit() print(n)
Traceback (most recent call last): File "/tmp/tmpng4xs0f6/tmpun7h5r_4.py", line 1, in <module> s=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s913621473
p02571
u710282484
1598731184
Python
Python (3.8.2)
py
Runtime Error
57
8812
196
s=str(input()) t=str(input()) ans=0 f=[] g=len(s) h=len(t) for i in range(g-h): for j in range(h): if s[i+j]!=t[j]: ans+=1 f.append(ans) ans=0 f.sort() print(f[0])
Traceback (most recent call last): File "/tmp/tmpnjgkq4u4/tmpcqhi4l_u.py", line 1, in <module> s=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s440756621
p02571
u710282484
1598731168
Python
PyPy3 (7.3.0)
py
Runtime Error
89
68784
196
s=str(input()) t=str(input()) ans=0 f=[] g=len(s) h=len(t) for i in range(g-h): for j in range(h): if s[i+j]!=t[j]: ans+=1 f.append(ans) ans=0 f.sort() print(f[0])
Traceback (most recent call last): File "/tmp/tmpyztu6wbh/tmpmf08sysl.py", line 1, in <module> s=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s457831404
p02571
u137191729
1598731167
Python
PyPy3 (7.3.0)
py
Runtime Error
93
74628
455
def inp(): return(int(input())) def inlt(): return(list(map(int,input().split()))) def insr(): s = input() return(list(s[:len(s) ])) def invr(): return(map(int,input().split())) I = input() first = s[0] second = s[1] vec = c() i=0 while len(vec)==0: j = len(second)- i for k in range(1,i+1) ...
File "/tmp/tmpwibobkuz/tmp6y82_nz0.py", line 19 for k in range(1,i+1) ^ SyntaxError: expected ':'