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
s694880959
p04030
u457554982
1565402326
Python
Python (3.4.3)
py
Runtime Error
17
3060
162
list=input().split() l=len(list) output="" for i in l: if list[i]=="0" or "1": output=output+list[i] else: if i!=0: output=output-list[i-1] print(output)
Traceback (most recent call last): File "/tmp/tmpe50f9p52/tmpi677m14m.py", line 1, in <module> list=input().split() ^^^^^^^ EOFError: EOF when reading a line
s487917621
p04030
u030246664
1565138456
Python
Python (3.4.3)
py
Runtime Error
17
2940
333
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; string S=""; for(int i=0;i<s.size();i++){ if(s.at(i)=='0'){ S+='0'; }else if(s.at(i)=='1'){ S+='1'; }else if(s.at(i)=='B'){ if(S.size()!=0){ S.pop_back(); } } } cout << S << endl; return 0; }
File "/tmp/tmpnriif_hg/tmppxq6cg2i.py", line 2 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s636575164
p04030
u030246664
1565138292
Python
Python (3.4.3)
py
Runtime Error
17
2940
316
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; string S=""; for(int i=0;i<s.size();i++){ if(s.at(i)=='0'){ S+='0'; }else if(s.at(i)=='1'){ S+='1'; }else{ if(S.size()!=0){ S.pop_back(); } } } cout << S << endl; return 0; }
File "/tmp/tmp_86bey6y/tmp31fadx6d.py", line 2 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s849942155
p04030
u030246664
1565137952
Python
Python (3.4.3)
py
Runtime Error
17
2940
316
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; string S=""; for(int i=0;i<s.size();i++){ if(s.at(i)=='0'){ S+='0'; }else if(s.at(i)=='1'){ S+='1'; }else{ if(S.size()!=0){ S.pop_back(); } } } cout << S << endl; return 0; }
File "/tmp/tmp71dgtqv3/tmprv7w19ba.py", line 2 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s246195082
p04030
u979418645
1564865038
Python
Python (3.4.3)
py
Runtime Error
17
2940
242
s=input() s_list=list(s) string=[] for i, x in enumerate(s_list): if x=='0': string.append('0') if x=='1': string.append('1') if x=='B': string.pop() string_out=''.join(string) print(string_out)
Traceback (most recent call last): File "/tmp/tmpj9i_x7s5/tmpkk_38e2k.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s777354967
p04030
u979418645
1564864636
Python
Python (3.4.3)
py
Runtime Error
17
2940
242
s=input() s_list=list(s) string=[] for i, x in enumerate(s_list): if x=='0': string.append('0') if x=='1': string.append('1') if x=='B': string.pop() string_out=''.join(string) print(string_out)
Traceback (most recent call last): File "/tmp/tmpsc67740j/tmpb1axfom3.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s209595449
p04030
u144969476
1564253054
Python
Python (3.4.3)
py
Runtime Error
17
3060
251
s=input() mylist=[y for y in s] for x in range(len(s)): if mylist[0]=='b' or mylist[0]=='B': print(None) elif mylist[x]=='b' or mylist[x]=='B': mylist.pop(x) mylist.pop(x-1) else: pass print(''.join(mylist))
Traceback (most recent call last): File "/tmp/tmp9yfvssh0/tmphpzvsi25.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s137614390
p04030
u759412327
1564033173
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
s = input() z = [] for i in s: if i=="B": z.pop() else: z.append(i) print("".join(z))
Traceback (most recent call last): File "/tmp/tmp5ttnp9lz/tmpkqg1k4_a.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s289759900
p04030
u537782349
1563595133
Python
Python (3.4.3)
py
Runtime Error
17
2940
213
a = list(input()) for i in range(len(a)): if a[i] == "B": if i > 0 a[i] = "" for j in range(i-1, -1, -1): if a[j] != "": a[j] = "" print("".join(a))
File "/tmp/tmprn9omtxb/tmpjhnj6w4z.py", line 4 if i > 0 ^ SyntaxError: expected ':'
s231639738
p04030
u797016134
1563590757
Python
Python (3.4.3)
py
Runtime Error
17
2940
261
= list(input()) str = "" for i in range(len(s)): if s[i] == "0": str += "0" if s[i] == "1": str += "1" print(str) if s[i] == "B": if str == "": continue else: str = str[:-1] print(str)
File "/tmp/tmp6mhvesl0/tmplo4sta64.py", line 1 = list(input()) IndentationError: unexpected indent
s496646366
p04030
u797016134
1563590690
Python
Python (3.4.3)
py
Runtime Error
18
2940
261
= list(input()) str = "" for i in range(len(s)): if s[i] == "0": str += "0" if s[i] == "1": str += "1" print(str) if s[i] == "B": if str == "": continue else: str = str[:-1] print(str)
File "/tmp/tmpyb0g681e/tmpn01fs6_5.py", line 1 = list(input()) IndentationError: unexpected indent
s398264828
p04030
u016622494
1563249498
Python
Python (3.4.3)
py
Runtime Error
17
2940
185
S = input() str = [] result = "" flg = 0 for i in range(len(S)): if S[i] == 'B': str.pop(i-1) else: str.append(S[i]) for i in str: result += i print(result)
Traceback (most recent call last): File "/tmp/tmp99bk95o3/tmpk_garebq.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s056396283
p04030
u448655578
1562656203
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
s = list(input()) ans = [] for i in s: if i == '0': ans.append('0') elif i == '1': ans.append('1') else: ans.pop() print("".join(ans))
Traceback (most recent call last): File "/tmp/tmpfgsgfzk1/tmp5l49p1mi.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s787433497
p04030
u256901785
1562623112
Python
Python (3.4.3)
py
Runtime Error
17
2940
344
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; string ans = ""; for (char c : s){ if (c == '0'){ ans += '0'; } if (c == '1'){ ans += '1'; } if (c == 'B' && !ans.empty()){ ans.erase(ans.begin() + ans.size()-1); } } cout << ans; return 0; }
File "/tmp/tmp8k9cvng0/tmp8n002302.py", line 3 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s659107681
p04030
u256901785
1562623069
Python
Python (3.4.3)
py
Runtime Error
17
2940
339
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; string ans; for (char c : s){ if (c == '0'){ ans += '0'; } if (c == '1'){ ans += '1'; } if (c == 'B' && !ans.empty()){ ans.erase(ans.begin() + ans.size()-1); } } cout << ans; return 0; }
File "/tmp/tmpvcsis_r2/tmp0fom043g.py", line 3 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s989108825
p04030
u759412327
1562124446
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
a = input() b = [] for s in a: if s=="0" or s=="1": b.append(s) else: b.pop() else: print("".join(b))
Traceback (most recent call last): File "/tmp/tmpz2rf8e_a/tmpkvgbkacs.py", line 1, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s348110439
p04030
u015316911
1561487137
Python
Python (3.4.3)
py
Runtime Error
17
3060
278
s = input() s_list = list(s) out_list = [] for i in range(len(s_list)): if s_list[i] == "0": out_list.append("0") elif s_list[i] == "1": out_list.append("1") elif s_list[i] == "B": del out_list[-1] for ol in out_list: print(ol, end="")
Traceback (most recent call last): File "/tmp/tmpjyvuw8jx/tmp4rnfmar2.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s924386041
p04030
u714300041
1561483830
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N = int(input()) S = 0 for i in range(1, N+1): S += i print(S)
Traceback (most recent call last): File "/tmp/tmparns_3gl/tmpxira31pf.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s047819920
p04030
u714300041
1561483796
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N = int(input()) S = 0 for i in range(1, N+1): S += 1 print(S)
Traceback (most recent call last): File "/tmp/tmp7bbrv6wa/tmpn4ioghv5.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s502414289
p04030
u494927057
1561096088
Python
Python (3.4.3)
py
Runtime Error
18
3060
188
s = input() for i in range(1, len(s)): if s[i] == 'B': continue else: if s[i - 1] != 'B': ans += s[i - 1] if s[-1] != 'B': ans += s[-1] print(ans)
Traceback (most recent call last): File "/tmp/tmp9v5ae03g/tmpydm5wfkn.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s145543528
p04030
u494927057
1561096043
Python
Python (3.4.3)
py
Runtime Error
17
2940
175
for i in range(1, len(s)): if s[i] == 'B': continue else: if s[i - 1] != 'B': ans += s[i - 1] if s[-1] != 'B': ans += s[-1] print(ans)
Traceback (most recent call last): File "/tmp/tmpg9owrtw7/tmphh8pgro1.py", line 1, in <module> for i in range(1, len(s)): ^ NameError: name 's' is not defined
s531566010
p04030
u663014688
1560990525
Python
Python (3.4.3)
py
Runtime Error
17
2940
195
s = input() ans = [] for i in range(len(s)): if s[i] == '0': ans.append('0') if s[i] == '1': ans.append('1') if s[i] == 'B': ans.pop(-1) print(''.join(ans))
Traceback (most recent call last): File "/tmp/tmpf9nj2gft/tmpi_bhew7c.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s196550294
p04030
u663014688
1560990498
Python
Python (3.4.3)
py
Runtime Error
18
3060
223
s = input() ans = [] for i in range(len(s)): if s[i] == '0': ans.append('0') if s[i] == '1': ans.append('1') if s[i] == 'B': if len(s) != 0: ans.pop(-1) print(''.join(ans))
Traceback (most recent call last): File "/tmp/tmp78skisjy/tmphob2sxai.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s819450882
p04030
u623687794
1560905328
Python
Python (3.4.3)
py
Runtime Error
17
3064
186
s=list(input()) ans="" l=len(s) n=0 for i in range(l): if s[i]=="0"or s[i]=="1": ans+=s[i] n+=1 elif s[i]=="B" and n==0: pass else: ans-=ans[-1] n-=1 print(ans)
Traceback (most recent call last): File "/tmp/tmp2rp770yb/tmp2zzqpqk6.py", line 1, in <module> s=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s632120194
p04030
u921194336
1560803646
Python
Python (3.4.3)
py
Runtime Error
17
2940
217
s = input() r = [] for i in range(len(s)): if s[i] == "0": r.append("0") elif s[i] == "1": r.append("1") elif s[0] == "B": continue else: del r[-1] print("".join(r))
Traceback (most recent call last): File "/tmp/tmpyo3t196c/tmpqpob_egi.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s820360847
p04030
u580904613
1560733077
Python
Python (3.4.3)
py
Runtime Error
17
2940
137
s = input() s_list = list(s) ans = '' for i in s_list: if(s_list[i] != 'B'): ans += s_list[i] else: ans = ans[:-1] print(ans)
Traceback (most recent call last): File "/tmp/tmpjzeq_zpm/tmpf6l7p32h.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s602616722
p04030
u429830097
1560716755
Python
Python (3.4.3)
py
Runtime Error
17
2940
247
#include<bits/stdc++.h> using namespace std; int a[11],i; char c; int main(){ while(cin>>c){ switch(c){ case '1':a[i++]=1;break; case '0':a[i++]=-1;break; case 'B':if(i)a[--i]=0;break; } } for(int j=0;j<i;j++)cout<<((a[j]+1)>>1); }
File "/tmp/tmp_tpg0gbv/tmpfq7itrnv.py", line 2 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s623915188
p04030
u114648678
1560335900
Python
Python (3.4.3)
py
Runtime Error
18
3060
181
s=input() ans=[] for i in range(len(s)): if s[i]=='0': ans.append(0) elif s[i]=='1': ans.append(1) else: ans.pop() for j in range(len(ans)): print(ans[j],end='')
Traceback (most recent call last): File "/tmp/tmp6dwdb2do/tmpubqkq2tf.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s474418283
p04030
u102461423
1560318478
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
s = input() x = [] for c in s: if c == 'B': x.pop() else: x.append(c) answer = ''.join(x) print(answer)
Traceback (most recent call last): File "/tmp/tmpsulh8ap4/tmpq__4ybue.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s476794040
p04030
u474423089
1560308203
Python
Python (3.4.3)
py
Runtime Error
17
3056
225
def main(): s = list(input()) ans = [] for i in s: if i =='B': ans.pop(-1) else: ans.append(i) for i in ans: print(i,end='') if __name__=='__main__': main()
Traceback (most recent call last): File "/tmp/tmpi34nwjz1/tmpv0zh22y6.py", line 13, in <module> main() File "/tmp/tmpi34nwjz1/tmpv0zh22y6.py", line 2, in main s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s581625713
p04030
u498620941
1559539284
Python
Python (3.4.3)
py
Runtime Error
17
2940
158
s = list(input()) size = len(s) ans = [] for i in range(size) : if s[i] == "B": ans.pop(-1) else: ans.append(s[i]) b = "".join(ans) print(b)
Traceback (most recent call last): File "/tmp/tmpr98_vjda/tmp8pkwvbjm.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s033856900
p04030
u498620941
1559539252
Python
Python (3.4.3)
py
Runtime Error
20
3060
167
s = list(input()) size = len(s) print(s) ans = [] for i in range(size) : if s[i] == "B": ans.pop(-1) else: ans.append(s[i]) b = "".join(ans) print(b)
Traceback (most recent call last): File "/tmp/tmp0d2_bcka/tmp543eh0p0.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s795748431
p04030
u008489560
1558632728
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
ret = [] for s in input(): if s == 'B': ret.pop() else: ret.append(s) print(''.join(ret))
Traceback (most recent call last): File "/tmp/tmp2vmvw1z3/tmpp4d_6bji.py", line 2, in <module> for s in input(): ^^^^^^^ EOFError: EOF when reading a line
s996421703
p04030
u532966492
1557853038
Python
Python (3.4.3)
py
Runtime Error
17
3060
129
S=input() ans=[] for i in range(len(S)): if S[i] in ["0","1"]: ans.append(S[i]) else: ans.pop(-1) print("".join(ans))
Traceback (most recent call last): File "/tmp/tmpjxkbi6ul/tmpuppu1a8o.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s246051397
p04030
u507116804
1557713675
Python
Python (3.4.3)
py
Runtime Error
17
2940
97
s=input() k="" m=len(s) for i in range(m): if i!="B": k+=i else: k[:-1] print(k)
Traceback (most recent call last): File "/tmp/tmp3rihdvza/tmpxokt0j4u.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s207943571
p04030
u329706129
1557209049
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38256
200
# -*- coding: UTF-8 -*- s = input() a = [] for c in s: if (c == '0'): a.append('0') elif (c == '1'): a.append('1') else: a.pop() answer = ''.join(a) print(answer)
Traceback (most recent call last): File "/tmp/tmptiv6s4xe/tmpgqv_j1tt.py", line 2, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s291134915
p04030
u300637346
1557159442
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
s=input() for i in range(len(s)): if s[i] == 'B': s = s[:-1] print(s)
Traceback (most recent call last): File "/tmp/tmpl3xw4zhn/tmp12j9phs4.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s307078654
p04030
u799000757
1557128740
Python
Python (3.4.3)
py
Runtime Error
18
3060
199
s=list(input()) out=[] for i in range(len(s)): if s[i]=="1": out.append(s[i]) elif s[i]=="0": out.append(s[i]) elif len(out)!=0: del(s[-1]) for i in range(len(out)): print(out[i])
Traceback (most recent call last): File "/tmp/tmpryi81grr/tmpzt1d4iv6.py", line 1, in <module> s=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s834740435
p04030
u651277159
1556750314
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
S = input() disp = [] for s in S: if s == "B": if len(S) > 0: disp.pop() continue disp.append(s) print("".join(disp))
Traceback (most recent call last): File "/tmp/tmp6rehth33/tmp8x41qohm.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s036371809
p04030
u651277159
1556750290
Python
Python (3.4.3)
py
Runtime Error
19
2940
154
S = input() disp = [] for s in S: if s == "B": if len(s) > 0: disp.pop() continue disp.append(s) print("".join(disp))
Traceback (most recent call last): File "/tmp/tmpjorzaend/tmpyin3x4ne.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s647992081
p04030
u382431597
1556664002
Python
Python (3.4.3)
py
Runtime Error
17
2940
185
s = input() ans = "" for i in range(len(s)): if s[i] = "0": ans.append("0") elif s[i] = "1": ans.append("1") elif s[i] = "B": ans.rstrip() print(ans)
File "/tmp/tmpus8b7bea/tmphx5kq6y1.py", line 4 if s[i] = "0": ^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s908985916
p04030
u591779169
1556377839
Python
Python (3.4.3)
py
Runtime Error
18
3060
195
s = input() ans =[] for i in range(len(s)): if s[i] == '0': ans.append('0') elif s[i] == '1': ans.append('1') elif s[i] == 'B': ans.pop(-1) print(''.join(ans))
Traceback (most recent call last): File "/tmp/tmpdi6l07qy/tmpg46abne7.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s102232502
p04030
u609738635
1556140227
Python
Python (3.4.3)
py
Runtime Error
151
12480
281
# -*- coding: utf-8 -*- import numpy as np def solve(S): A = [] for i in range(len(S)): if(S[i]=="0" or S[i]=="1"): A.append(S[i]) else: A.pop() print("".join(A)) if __name__ == '__main__': S = input() solve(S)
Traceback (most recent call last): File "/tmp/tmpgm6e6g2v/tmpr95zesgn.py", line 14, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s168955864
p04030
u436982376
1556133928
Python
Python (3.4.3)
py
Runtime Error
17
3060
270
s=input() output=[] for i in range(len(s)): if s[i]=='0': output.append('0') elif s[i]=='1': output.append('1') elif s[i]=='B': if len(output)!=0: del output[i-1] for i in range(len(output)): print(output[i],end="")
Traceback (most recent call last): File "/tmp/tmphjj4pft_/tmp8euxwu80.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s998422769
p04030
u941753895
1555454924
Python
Python (3.4.3)
py
Runtime Error
17
2940
196
# 入力 s=input() a='' for x in s: if x=='0': a+='0' elif x=='1' a+='1' else: # 文字列が空でない場合、末尾を削除 if a!='': a=a[:-1] # 出力 print(a)
File "/tmp/tmpu44wnwe0/tmpqiqdrddw.py", line 8 elif x=='1' ^ SyntaxError: expected ':'
s792218118
p04030
u457423258
1555257139
Python
Python (3.4.3)
py
Runtime Error
18
2940
135
s = input() n= len(s) a=[] for i in range(n): if s[i]!='B': a.append(s[i]) else: del a[-1] print(''.join(a))
Traceback (most recent call last): File "/tmp/tmpfkxp4x1q/tmpsr_y_o2h.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s685574169
p04030
u256868077
1555120995
Python
Python (3.4.3)
py
Runtime Error
17
3064
234
a=input() ans=[] count=0 for i in range(len(a)): if a[i] == "0" or a[i] == "1": ans.append(a[i]) count += 1 elif a[i] == "B" and count >= 1: ans.remove(a[count-1]) count -= 1 else: i += 1 print("".join(ans))
Traceback (most recent call last): File "/tmp/tmp74kgg5jb/tmp4lg01vz1.py", line 1, in <module> a=input() ^^^^^^^ EOFError: EOF when reading a line
s160471789
p04030
u483151310
1554664688
Python
Python (3.4.3)
py
Runtime Error
18
2940
203
s = input() # s = "01B0" # print(s[0]) ans = [] for key in range(len(s)): if s[key] == "0" or s[key] == "1": ans.append(s[key]) if s[key] == "B": ans.pop(-1) print("".join(ans))
Traceback (most recent call last): File "/tmp/tmpfcjjwwv6/tmpi62_o6sv.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s039145731
p04030
u003928116
1554427574
Python
Python (3.4.3)
py
Runtime Error
18
3060
148
s=input() for i in range(len(s)): if s[i]=="0": ans+="0" elif s[i]=="1": ans+="1" else: ans=ans[0:-1] print(ans)
Traceback (most recent call last): File "/tmp/tmp39xx1tv8/tmp0tpnhtm1.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s317193830
p04030
u405947212
1554211582
Python
Python (3.4.3)
py
Runtime Error
18
2940
183
n = list(input()) m = [] for i in n: if i == '0': m.append(0) elif i == '1': m.append(1) elif i == 'B': del m[-1] ans = ''.join(map(str,m)) print(ans)
Traceback (most recent call last): File "/tmp/tmp2baa80qg/tmpdoekeygm.py", line 1, in <module> n = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s201806655
p04030
u363610900
1554163168
Python
Python (3.4.3)
py
Runtime Error
18
2940
140
s = input() ans = [] for i in s: if i == '0' or i == '1': ans.append(i) elif i == 'B': ans.pop() print(''.join(ans))
Traceback (most recent call last): File "/tmp/tmpemqy_lix/tmpei81ys04.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s367775935
p04030
u259053514
1554087702
Python
Python (3.4.3)
py
Runtime Error
18
2940
282
# -*- coding: utf-8 -*- from collections import deque S: str = input() d = deque() for c in S: if c == '0': d.append(c) elif c == '1': d.append(c) else: if len(d) > 0: d.pop() ans: str = str() for c in d: ans += c print(ans)
Traceback (most recent call last): File "/tmp/tmpthiptf62/tmp_wux20st.py", line 5, in <module> S: str = input() ^^^^^^^ EOFError: EOF when reading a line
s652967700
p04030
u020604402
1553921706
Python
Python (3.4.3)
py
Runtime Error
17
2940
234
S = list(input()) ans = [] for i in range(len(S)): if S[i] == 'B': if i == 0: pass else: del ans[-1] else: ans.append(S[i]) for x in ans: print(x,end='') print()
Traceback (most recent call last): File "/tmp/tmpop5mu1ei/tmp3_1euksr.py", line 1, in <module> S = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s920993909
p04030
u127535085
1553873736
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
s = input() out = '' for w in s: if w == '1' or w == '0': out += w elif len(out) > 0: out = out[:-1] print(out)
File "/tmp/tmpat6hzw5a/tmpku1wm9re.py", line 6 elif len(out) > 0: ^ IndentationError: unindent does not match any outer indentation level
s748567802
p04030
u127535085
1553873569
Python
Python (3.4.3)
py
Runtime Error
17
2940
133
s = input() out = `` for w in s: if w == '1' or w == '0': out += w elif len(out) > 0: out = out[:-1] print(out)
File "/tmp/tmp6145x6vv/tmppm9qee19.py", line 2 out = `` ^ SyntaxError: invalid syntax
s397606356
p04030
u127535085
1553873174
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
s = input() out = [] for i in range(10): if s[i] == 'B': del out[-1] else: out.append(s[i]) print(out)
File "/tmp/tmph2usvf5v/tmppeggubi0.py", line 6 else: ^^^^ SyntaxError: invalid syntax
s780864645
p04030
u127535085
1553872861
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
s = input() out = [] for i in range(len(s)): if s[i] == 'B': del out[-1] else: out.append(s[i]) print(out)
File "/tmp/tmpf7a9hdlp/tmp6rspd2qh.py", line 6 else: ^ IndentationError: unindent does not match any outer indentation level
s646744909
p04030
u363610900
1553500289
Python
Python (3.4.3)
py
Runtime Error
17
2940
141
s = input() ans = [] for i in s: if i =='0' or i == '1': ans.append(i) elif i == 'B': del ans[-1] print(''.join(ans))
Traceback (most recent call last): File "/tmp/tmpmuzfzz7n/tmpztg_qcjr.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s092518800
p04030
u363610900
1553500132
Python
Python (3.4.3)
py
Runtime Error
17
2940
141
s = input() ans = [] for i in s: if i =='0' or i == '1': ans.append(i) elif i == 'B': ans.pop(-1) print(''.join(ans))
Traceback (most recent call last): File "/tmp/tmpqp7g0mez/tmp788aeb57.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s172839806
p04030
u363610900
1553500015
Python
Python (3.4.3)
py
Runtime Error
17
2940
130
s = input() ans = [] for i in s: if i =='0' or i == '1': ans.append(i) else: ans.pop() print(''.join(ans))
Traceback (most recent call last): File "/tmp/tmphrv4flz1/tmp_i33mlww.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s646732639
p04030
u878138257
1552798139
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
a = input() b = len(a) for i in range(b): if a[i]=="B": a.remove(a[i-1]) a.remove["B"] print(a)
Traceback (most recent call last): File "/tmp/tmpeb209005/tmp4cqvjlq4.py", line 1, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s116716771
p04030
u677393869
1552154804
Python
Python (3.4.3)
py
Runtime Error
20
3060
152
A=str(input()) A=list(A) B=[] for i in A: if i=="0": B.append("0") elif i=="1": B.append("1") elif i=="B": B.pop(-1) print(''.join(B))
Traceback (most recent call last): File "/tmp/tmp40ykjttv/tmpisftgrxt.py", line 1, in <module> A=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s606998573
p04030
u728498511
1551738738
Python
Python (3.4.3)
py
Runtime Error
17
2940
190
s = list(input()) ans = [] for i in range(len(s)): if s[i] == '0' or s[i] == '1': ans.append(s[i]) else: if len(ans) > 0: ans.pop(i-1) print("".join(ans))
Traceback (most recent call last): File "/tmp/tmp40fsovvn/tmpwk5fid41.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s746369200
p04030
u723721005
1551405478
Python
Python (3.4.3)
py
Runtime Error
17
3060
195
s=input();k=[] for i in range(0,len(s)): if s[i]!='B': k.append(int(s[i])) else: if k!=[]: del k[-1] for j in range(0,len(s)): print(k[j],end='') print('')
Traceback (most recent call last): File "/tmp/tmpj5hjls3l/tmpuaem7wlx.py", line 1, in <module> s=input();k=[] ^^^^^^^ EOFError: EOF when reading a line
s780673822
p04030
u476418095
1551405435
Python
Python (3.4.3)
py
Runtime Error
18
3060
173
s=input();k=[] for i in range(0,len(s)): if s[i]!='B': k.append(int(s[i])) else: del k[-1] for j in range(0,len(s)): print(k[j],end='') print('')
Traceback (most recent call last): File "/tmp/tmpu35ofy5v/tmpafn8_t5o.py", line 1, in <module> s=input();k=[] ^^^^^^^ EOFError: EOF when reading a line
s987816671
p04030
u023229441
1551237945
Python
Python (3.4.3)
py
Runtime Error
18
2940
120
s=input() ans="" for i in s: if i=="0" or i=="1": ans+=i else: if len(ans)!=0: del ans[-1] print(ans)
Traceback (most recent call last): File "/tmp/tmp_v6i5d91/tmp1s_lzlgp.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s835342510
p04030
u033524082
1551209665
Python
Python (3.4.3)
py
Runtime Error
17
2940
277
s=input() ans=[] for c in s: if c=="0" or c=="1": ans.append(c) else: ans.pop(-1) print("".join(ans))s=input() ans=[] for c in s: if c=="0" or c=="1": ans.append(c) else: if len(ans)>0: ans.pop(-1) print("".join(ans))
File "/tmp/tmped5ezbci/tmpw65zl3v3.py", line 8 print("".join(ans))s=input() ^ SyntaxError: invalid syntax
s975922231
p04030
u033524082
1551209493
Python
Python (3.4.3)
py
Runtime Error
26
2940
125
s=input() ans=[] for c in s: if c=="0" or c=="1": ans.append(c) else: ans.pop(-1) print("".join(ans))
Traceback (most recent call last): File "/tmp/tmpgh31l533/tmpee4vocy4.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s365526395
p04030
u503228842
1551067849
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
s = list(input()) w =[] for i in s: if i == "B": w.pop(-1) else: w.append(i) print("".join(w))
Traceback (most recent call last): File "/tmp/tmpt_9mpw0p/tmp9e20uy6u.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s161079439
p04030
u610232844
1550613022
Python
Python (3.4.3)
py
Runtime Error
17
3060
204
s = list(map(str,input().split())) l = [] for i in s: if i == '0': l.append(i) elif i == '1': l.append(i) elif i == 'B' and len(l) != 0: l.pop(-1) print(int(''.join(l)))
Traceback (most recent call last): File "/tmp/tmpakrl0h8p/tmprvchumch.py", line 1, in <module> s = list(map(str,input().split())) ^^^^^^^ EOFError: EOF when reading a line
s345188111
p04030
u518064858
1550330314
Python
Python (3.4.3)
py
Runtime Error
18
2940
94
c=list(input()) s="" for x in c: if x!=B: s+=x else: s=s[:-1] print(s)
Traceback (most recent call last): File "/tmp/tmp18f6mv0n/tmpp0b7su8g.py", line 1, in <module> c=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s313141932
p04030
u518064858
1550328547
Python
Python (3.4.3)
py
Runtime Error
18
2940
176
c=list(input()) s="" for i in c: if i=="B" and len(s)==0: pass elif i=="B": del(s[-1]) elif i=="0": s+="0" else: s+="1" print(s)
Traceback (most recent call last): File "/tmp/tmpbnmk0u7x/tmpfopm94zm.py", line 1, in <module> c=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s268825062
p04030
u483645888
1549318484
Python
Python (3.4.3)
py
Runtime Error
17
3060
227
S = input() str = '' for w in S: if w == 'B': if str[-1] == '0': str = str.rstrip('0') elif str[-1] == '1': str = str.rstrip('1') elif w == '0': str += '0' elif w == '1': str += '1' print(str)
Traceback (most recent call last): File "/tmp/tmpg66zz4jf/tmp5arwkhwr.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s461121648
p04030
u239981649
1548901853
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
A = [] for a in input(): if a == '0' or a == '1': A.append(a) else: del A[-1] print(''.join(A))
Traceback (most recent call last): File "/tmp/tmpfqc889ga/tmpwoquqjdr.py", line 2, in <module> for a in input(): ^^^^^^^ EOFError: EOF when reading a line
s210904164
p04030
u239981649
1548901672
Python
PyPy3 (2.4.0)
py
Runtime Error
194
38256
120
A = [] for a in input(): if a == '0' or a == '1': A.append(a) else: del A[-1] print(''.join(A))
Traceback (most recent call last): File "/tmp/tmpifg331j9/tmpnp318_pe.py", line 2, in <module> for a in input(): ^^^^^^^ EOFError: EOF when reading a line
s046304858
p04030
u983918956
1547698284
Python
Python (3.4.3)
py
Runtime Error
18
3060
209
s = input() editor = [""] for e in s: if e == "0": editor.append("0") elif e == "1": editor.append("1") elif e == "B" and editor != "": del editor[-1] print("".join(editor))
Traceback (most recent call last): File "/tmp/tmpqu5cm6gu/tmp7kuerlx5.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s238433400
p04030
u445624660
1547688649
Python
Python (3.4.3)
py
Runtime Error
18
2940
132
s = input() ans = [] for x in s: if x == "0" or x == "1": ans.append(x) else: ans.pop() print("".join(ans))
Traceback (most recent call last): File "/tmp/tmpkbrm81g5/tmppfono4nf.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s570775125
p04030
u399261731
1547506126
Python
Python (3.4.3)
py
Runtime Error
17
2940
259
#include <iostream> #include <string> using namespace std; int main(void){ string s,S; cin >> s; for(int i=0;i<s.size();i++){ if(s[i] == '0') S += '0'; else if(s[i] == '1') S += '1'; else S.erase(i-1,i-1); } cout<<S; }
File "/tmp/tmplypl7p80/tmppm2mqa5m.py", line 3 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s689986547
p04030
u371467115
1547338250
Python
Python (3.4.3)
py
Runtime Error
18
2940
161
s=list(input()) l=[] for i in s: if i=="B": if len(l)!=0: l.rstrip() elif i=="0": l.append(i) elif i=="1": l.append(i) print("".join(l))
Traceback (most recent call last): File "/tmp/tmp0gyjim53/tmprglg6xly.py", line 1, in <module> s=list(input()) ^^^^^^^ EOFError: EOF when reading a line
s948796569
p04030
u371467115
1547338147
Python
Python (3.4.3)
py
Runtime Error
17
2940
145
s=input() l="" for i in s: if i=="B": if len(l)!=0: l.rstrip() elif i=="0": l.append(i) elif i=="1": l.append(i) print(l)
Traceback (most recent call last): File "/tmp/tmpstycsggh/tmpktl3j6fu.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s070254780
p04030
u597374218
1547002154
Python
Python (3.4.3)
py
Runtime Error
17
3064
116
s=input() t=[] for i in s: if i=="B" and not len(t):t.pop() if i=="0" or i=="1":t.append(i) print(*t,sep="")
Traceback (most recent call last): File "/tmp/tmp6fk8yflb/tmp8o_5mr8e.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s792468419
p04030
u303059352
1546765840
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
s = input() ans = [] for c in s: if c == '0': ans.append('0') elif c == '1': ans.append('1') else: ans.pop(-1) print(''.join(ans))
Traceback (most recent call last): File "/tmp/tmpkj7qi8t4/tmpsbs_15we.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s615745487
p04030
u129978636
1545862596
Python
Python (3.4.3)
py
Runtime Error
18
3060
188
s = input() ans=[] for i in range(len(s)): if(s[i] == '0' or s[i] == '1'): ans.append(s[i]) else: del ans[-1] for i in range(len(ans)): print(ans[i], end ="")
Traceback (most recent call last): File "/tmp/tmp7z6bk98e/tmptusoj3sf.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s937741769
p04030
u557437077
1544847232
Python
Python (3.4.3)
py
Runtime Error
17
3060
355
def listToString(_list, split=""): maped_list = map(str, _list) # mapで要素すべてを文字列に mojiretu = split.join(maped_list) return mojiretu s = input() out = [] for i in range(len(s)): if s[i] == "0": out.append("0") elif s[i] == "1": out.append("1") else: out.pop() print(listToString(out))
Traceback (most recent call last): File "/tmp/tmpld_8ykzr/tmpmmqh0n6c.py", line 7, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s055258309
p04030
u572542887
1544113593
Python
Python (3.4.3)
py
Runtime Error
17
3064
273
line = input() str = list(line) ans = [] c = 0 for i in str: if (i == "1") or (i == "0"): ans.append(i) elif i == "B": if c != 0: c -= 1 del ans[c] c -= 1 c += 1 for i in ans: print("".join(i), end = '')
Traceback (most recent call last): File "/tmp/tmp3fciyf1f/tmphwxvps9q.py", line 1, in <module> line = input() ^^^^^^^ EOFError: EOF when reading a line
s655466511
p04030
u432805419
1543288531
Python
Python (3.4.3)
py
Runtime Error
17
3060
164
moji = list(input()) ans = [] for i in moji: if i == "0": ans.append("0") elif i == "1": ans.append("1") else: ans.pop() print("".join(ans))
Traceback (most recent call last): File "/tmp/tmp6x2snra2/tmpjrt6gvsp.py", line 1, in <module> moji = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s891505391
p04030
u798086274
1542658864
Python
Python (3.4.3)
py
Runtime Error
18
2940
94
s = input() result = "" for i in s: if i == 'B': s = s[:-1] else s = s+i print(s)
File "/tmp/tmp2w1wvut6/tmp5d_q6tu3.py", line 7 else ^ SyntaxError: expected ':'
s932007134
p04030
u090225501
1541111193
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
s = input() m = [] for c in s: if c == 'B': if s: m.pop() else: m.append(c) print(''.join(m))
Traceback (most recent call last): File "/tmp/tmph8yuokcs/tmpc1quw03f.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s254913004
p04030
u733321071
1540752408
Python
Python (3.4.3)
py
Runtime Error
17
3060
235
# -*- coding: utf-8 -*- s = list(input()) line = [] for w in s: if w == '0': line.append(w) elif w == '1': line.append(w) elif w == 'B': line.pop() for n in line: print('{0}'.format(n), end='')
Traceback (most recent call last): File "/tmp/tmpg9jvtw1b/tmp3kx86dkt.py", line 3, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s743971625
p04030
u733321071
1540752088
Python
Python (3.4.3)
py
Runtime Error
17
2940
201
s = list(input()) line = [] for w in s: if w == '0': line.append(w) elif w == '1': line.append(w) elif w == 'B': line.pop() for n in line: print('{0}'.format(n), end='')
Traceback (most recent call last): File "/tmp/tmpp0kq20df/tmpoqjkrygq.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s015126713
p04030
u094191970
1539808076
Python
Python (3.4.3)
py
Runtime Error
17
2940
254
S = input() S_list = list(S) answer = [] for S_num in range(S_list): if S_num == '0': answer.append('0') elif S_num == '1': answer.append('1') elif not answer: continue else: del answer[-1] print(answer)
Traceback (most recent call last): File "/tmp/tmp9r4o1cz5/tmp0050hhk0.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s129457741
p04030
u094191970
1539807397
Python
Python (3.4.3)
py
Runtime Error
17
2940
215
S = input() S_list = list(S) answer = [] for S_num in range(S_list): if S_num == '0': answer.append('0') elif S_num == '1': answer.append('1') else: del answer[-1] print(answer)
Traceback (most recent call last): File "/tmp/tmp89lut7gi/tmpdtb21k4h.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s262681406
p04030
u940102677
1538539992
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
s = list(input()) a = [] for i in s: if i == "0" or i == "1" : a += [i] elif: a != [] del a[-1] print(a)
File "/tmp/tmpkaz26_1n/tmpgy9coe1p.py", line 7 elif: a != [] ^ SyntaxError: invalid syntax
s333491589
p04030
u787562674
1536559726
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
s = str(input()) while 'B' in s: if s[0] == 'B': s=s[1:] s=s.replace('0B','') s=s.replace('1B','') print(s)
File "/tmp/tmpd9nxv2e9/tmpr5gm299j.py", line 5 s=s[1:] ^ IndentationError: expected an indented block after 'if' statement on line 4
s093581020
p04030
u787562674
1536559096
Python
Python (3.4.3)
py
Runtime Error
17
3060
255
s = list(input()) result = [] for i in range(len(s)): if i == 1: if s[i] != 'B': result.append(s[i]) else: if s[i] != 'B': result.append(s[i]) else: result.pop() print(''.join(result))
Traceback (most recent call last): File "/tmp/tmp_38h1r_m/tmpavamvdst.py", line 1, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s384393971
p04030
u277802731
1534015936
Python
Python (3.4.3)
py
Runtime Error
17
2940
161
#43b s = list(input()) ans ='' for i in s: if i =='0' or i =='1': a+=i else: #最後の一つをスライス a = a[:-1] print(a)
Traceback (most recent call last): File "/tmp/tmpg9la33gf/tmpfqre9p09.py", line 2, in <module> s = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s400279277
p04030
u399280934
1527819055
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
a='' for i in input(): if i=='B': a=a[:-1] else: a+=x print(a)
Traceback (most recent call last): File "/tmp/tmpy9pz1otm/tmpqz4hi462.py", line 2, in <module> for i in input(): ^^^^^^^ EOFError: EOF when reading a line
s894842279
p04030
u846150137
1526992234
Python
Python (3.4.3)
py
Runtime Error
17
2940
145
a=list(input()) x=[] for ai in a: if x !=[] and ai="B": l=len(x) del x[l-1] elif ai in ["0","1"]: x.append(ai) print("".join(x))
File "/tmp/tmpf_5cdvyq/tmp6pvpdt85.py", line 4 if x !=[] and ai="B": ^ SyntaxError: invalid syntax
s522983061
p04030
u978494963
1523135678
Python
Python (3.4.3)
py
Runtime Error
18
3060
104
inst = input() buf = [] for s in inst: if s == "B": buf.pop() else: buf.append(s) print(buf)
Traceback (most recent call last): File "/tmp/tmpu3j22iqs/tmpm193ctow.py", line 1, in <module> inst = input() ^^^^^^^ EOFError: EOF when reading a line
s759775846
p04030
u976256337
1521385962
Python
Python (3.4.3)
py
Runtime Error
17
2940
130
a = input() ret = "" cnt = 0 for i in a: if i == "B": ret = ret[:-1:] else: ret += i print(ret)
File "/tmp/tmpwe31wzth/tmp55z58lxv.py", line 1 a = input() IndentationError: unexpected indent