s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
int64
0
100
memory
stringlengths
4
6
code_size
int64
15
14.7k
code
stringlengths
15
14.7k
problem_id
stringlengths
6
6
problem_description
stringlengths
358
9.83k
input
stringlengths
2
4.87k
output
stringclasses
807 values
__index_level_0__
int64
1.1k
1.22M
s642670821
p04030
u016622494
1566013605
Python
Python (3.4.3)
py
Accepted
17
2940
161
S = input() str = [] result = "" flg = 0 for i in range(len(S)): if S[i] == 'B': result = result[:-1] else: result += S[i] print(result)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,681
s183765763
p04030
u792670114
1566005951
Python
Python (3.4.3)
py
Accepted
17
2940
160
S = input() L = [] for c in S: if c == "0": L.append(c) elif c == "1": L.append(c) else: if len(L) > 0: L.pop() r = "".join(L) print(r)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,682
s684103862
p04030
u256868077
1566001557
Python
Python (3.4.3)
py
Accepted
18
2940
150
s=input() l=len(s) a=[] for i in range(l): if(s[i]=='B'): if(len(a)>=1): a=a[:len(a)-1] else: a.append(s[i]) x=("").join(a) print(x)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,683
s746546334
p04030
u037221289
1565980615
Python
Python (3.4.3)
py
Accepted
17
2940
127
S = input() t = "" for i in range(len(S)): if S[i] == "B": if t != "": t = t[:-1] else: t += S[i] print (t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,684
s938095417
p04030
u842689614
1565927284
Python
Python (3.4.3)
py
Accepted
17
3060
168
s=input() out=[] for c in list(s): if c=='0': out.append('0') elif c=='1': out.append('1') else: if len(out)>0: del out[-1] print(''.join(out))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,685
s573033399
p04030
u247922466
1565915498
Python
Python (3.4.3)
py
Accepted
17
2940
234
def B_UnhappyHacking(): S = input() ans = [] for s in S: if "B" == s: ans = ans[:-1] else: ans.append(s) print(*ans,sep="") if __name__ == "__main__": B_UnhappyHacking()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,686
s500765145
p04030
u619785253
1565904765
Python
Python (3.4.3)
py
Accepted
17
2940
189
s = list(input()) #key =s.copy() #print(s) a = [] #count = 0 for i in s: # print(s) if i == 'B': a = a[:-1] #del a[-1] else: a.append(i) print(''.join(a))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,687
s218418905
p04030
u619785253
1565904677
Python
Python (3.4.3)
py
Accepted
17
2940
241
s = list(input()) #key =s.copy() #print(s) a = [] #count = 0 for i in s: # print(s) if i == 'B' and s.index(i) == 0: a = a[:-1] elif i == 'B': a = a[:-1] #del a[-1] else: a.append(i) print(''.join(a))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,688
s802488768
p04030
u248670337
1565894300
Python
Python (3.4.3)
py
Accepted
17
2940
89
t="" for i in input(): if i=="B": if len(t)!=0: t=t[:-1] else:t+=i print(t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,689
s268791672
p04030
u475503988
1565890411
Python
Python (3.4.3)
py
Accepted
17
2940
129
s = input() ans = '' for i in range(len(s)): if s[i] == 'B': ans = ans[:-1] else: ans += s[i] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,690
s010128987
p04030
u842388336
1565857713
Python
Python (3.4.3)
py
Accepted
17
2940
195
s = input() ans=[] for c in s: if c=="0": ans.append("0") if c=="1": ans.append("1") if c=="B": if len(ans)==0: pass else: ans.pop() ans="".join(ans) print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,691
s726637241
p04030
u785470389
1565844202
Python
Python (3.4.3)
py
Accepted
17
3060
257
s = input() answer = [] cursor = 0 for i in range(len(s)): if s[i] == "0" or s[i] == "1": #print(s[i]) answer.append(s[i]) cursor += 1 elif cursor > 0: del answer[-1] cursor -= 1 for i in range(cursor): print(answer[i], end = "")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,692
s572501686
p04030
u830054172
1565837724
Python
Python (3.4.3)
py
Accepted
17
2940
169
s = input() ans = [] for i in range(len(s)): if s[i] == "B": if len(ans) != 0: del ans[-1] else: ans.append(s[i]) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,693
s137591272
p04030
u831873131
1565836315
Python
Python (3.4.3)
py
Accepted
17
2940
130
s = input() rslt = [] for c in s: if c in ['0', '1']: rslt.append(c) elif rslt: rslt = rslt[:-1] print(''.join(rslt))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,694
s066242734
p04030
u285443936
1565832341
Python
Python (3.4.3)
py
Accepted
17
2940
160
s = list(input()) n = len(s) ans = [] for i in range(n): if s[i] == "B": if len(ans) > 0: ans.pop() else: ans.append(s[i]) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,695
s842079525
p04030
u405660020
1565811031
Python
Python (3.4.3)
py
Accepted
18
3060
237
s=input() ans=[] for i in range(len(s)): if s[i]=='0': ans.append('0') elif s[i] == '1': ans.append('1') else: if ans==[]: continue else: ans.pop(-1) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,696
s083100205
p04030
u489315616
1565791961
Python
Python (3.4.3)
py
Accepted
17
2940
146
s = input() r = '' for i in range(len(s)): if s[i] == 'B': if len(r) > 0: r = r[:-1] else: r += s[i] print(r)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,697
s243874991
p04030
u111365362
1565757944
Python
Python (3.4.3)
py
Accepted
18
2940
153
s = input() n = len(s) t = '' for i in range(n): if s[i] == 'B' and t == '': pass elif s[i] == 'B': t = t[:-1] else: t += s[i] print(t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,698
s549229892
p04030
u946424121
1565756345
Python
Python (3.4.3)
py
Accepted
17
2940
118
s = input() t = [] for x in s: if x =="B": try:t.pop() except:pass else: t.append(x) print("".join(t))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,699
s567417920
p04030
u367713721
1565752742
Python
Python (3.4.3)
py
Accepted
17
2940
263
# -*- coding:utf-8 -*- s = input() a = [] for c in s: if c == '1' or c == '0': a.append(c) else: if len(a) > 0: a.pop(-1) print(''.join(a))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,700
s271664256
p04030
u367713721
1565752400
Python
Python (3.4.3)
py
Accepted
17
3060
389
# -*- coding:utf-8 -*- s = input() n = len(s) s_list = [] for i in range(0, n): if s[i] == 'B': if len(s_list) == 0: continue else: s_list.pop(-1) else: s_list.append(s[i]) S =...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,701
s197322012
p04030
u544637026
1565720962
Python
Python (3.4.3)
py
Accepted
17
2940
177
s = input() a = [] for v in s: if v == '1': a.append('1') elif v=='0': a.append('0') else: if len(a)>0: a.pop() print(''.join(a))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,702
s501921170
p04030
u131634965
1565718997
Python
Python (3.4.3)
py
Accepted
18
3064
278
s = input() a = [] #n=[s[i] for i in range(len(s))] for i in range(len(s)): if len(a)>0 and s[i]=="B": a.pop(-1) elif s[i]=='0': a.append('0') elif s[i]=='1': a.append('1') answer="" for i in range(len(a)): answer += a[i] print(answer)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,703
s533248894
p04030
u820461302
1565706933
Python
Python (3.4.3)
py
Accepted
17
2940
186
# -*- coding: utf-8 -*- # 文字列の入力 S = input() T = '' for i in range(len(S)): if S[i] == '0': T += '0' elif S[i] == '1': T += '1' elif S[i] == 'B': T = T[:-1] print(T)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,704
s215653945
p04030
u494871759
1565692997
Python
Python (3.4.3)
py
Accepted
17
2940
194
s = input() ans = [] for p in s: if p == '0': ans.append('0') elif p == '1': ans.append('1') else: if len(ans) > 0: ans.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,705
s738968713
p04030
u057308539
1565570453
Python
Python (3.4.3)
py
Accepted
17
2940
166
s=input() while ("0B" in s)==True: s=s.replace("0B","") while ("1B" in s)==True: s=s.replace("1B","") while ("B" in s)==True: s=s.replace("B","") print(s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,706
s519903855
p04030
u231122239
1565566971
Python
Python (3.4.3)
py
Accepted
20
2940
143
ans = '' for s in input(): if s in ['0', '1']: ans = ans + s else: if ans != '': ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,707
s651713257
p04030
u360515075
1565558020
Python
Python (3.4.3)
py
Accepted
19
2940
126
S = input() t = "" for i in range(len(S)): if S[i] == "B": if t != "": t = t[:-1] else: t += S[i] print (t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,708
s641519737
p04030
u874741582
1565553463
Python
Python (3.4.3)
py
Accepted
18
2940
204
#Bとその前1文字を消せば良い s =list(input()) lis = [] for i in range(len(s)): if s[i] == "B": if len(lis) >0: lis.pop() else: lis.append(s[i]) print("".join(lis))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,709
s726063182
p04030
u134712256
1565496130
Python
Python (3.4.3)
py
Accepted
17
2940
147
s = input() str = "" for i in s: if i == "0" or i == "1": str += i elif i == "B" and str != "" : str = str[:-1] print(str)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,710
s474334739
p04030
u134712256
1565495854
Python
Python (3.4.3)
py
Accepted
17
3060
326
s = input() str = "" count = 0 for i in range(len(s)): #print("count",count) if s[i] == "0": str += s[i] count += 1 elif s[i] == "1": str += s[i] count += 1 elif s[i] == "B": if count > 0: str = str[:-1] count -= 1 #print("str",str) print...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,711
s489288252
p04030
u536377809
1565483125
Python
Python (3.4.3)
py
Accepted
17
2940
146
s=input() result="" for c in list(s): if c=="0"or c=="1": result=result+c elif c=="B" and result!="": result=result[:-1] print(result)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,712
s081291943
p04030
u256031597
1565462759
Python
Python (3.4.3)
py
Accepted
18
2940
143
s = input() ans = "" for a in list(s): if a=="B": if len(ans)>0: ans = ans[0:-1] else: ans += a print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,713
s477510798
p04030
u753803401
1565461280
Python
Python (3.4.3)
py
Accepted
17
2940
129
s = input() ans = "" for i in range(len(s)): if s[i] == "B": ans = ans[:-1] else: ans += s[i] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,714
s237691878
p04030
u706929073
1565459670
Python
Python (3.4.3)
py
Accepted
19
2940
189
s = input() result = [] for i in range(len(s)): if 'B' == s[i]: if 0 == len(result): pass else: result.pop() else: result.append(s[i]) print("".join(result))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,715
s228338228
p04030
u311379832
1565410522
Python
Python (3.4.3)
py
Accepted
17
3064
169
s = input() ans = '' 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)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,716
s398713745
p04030
u457554982
1565405026
Python
Python (3.4.3)
py
Accepted
17
2940
142
nyu=input() shutu=[] for i in nyu: if i=="B": if len(shutu)!=0: shutu.pop(-1) else: shutu.append(i) kekka="".join(shutu) print(kekka)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,717
s722925816
p04030
u626337957
1565365573
Python
Python (3.4.3)
py
Accepted
17
2940
160
S = input() stack = [] for char in S: if char == 'B': if len(stack) > 0: i = stack.pop() else: stack.append(char) print(''.join(stack))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,718
s193730789
p04030
u111525113
1565360838
Python
Python (3.4.3)
py
Accepted
18
3060
168
words = str(input()) ans = "" for i in range(len(words)): if words[i] == "0": ans +="0" elif words[i] == "1": ans +="1" else: ans=ans[0:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,719
s441777461
p04030
u374974389
1565329050
Python
Python (3.4.3)
py
Accepted
17
3060
215
s = input() ans = [] for x in s: if x == 'B' and len(ans): ans.pop() elif x == 'B' and len(ans) == 0: pass else: ans.append(x) ans_s = '' for x in ans: ans_s += x print(ans_s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,720
s736020406
p04030
u280853184
1565294340
Python
Python (2.7.6)
py
Accepted
12
2820
187
S = list(raw_input()) ans = "" for i in range(0,len(S)): if S[i] == "0": ans += "0" elif S[i] == "1": ans += "1" else: ans = ans[:len(ans)-1] print ans
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,721
s248719764
p04030
u084324798
1565264959
Python
Python (3.4.3)
py
Accepted
17
2940
140
s = input() while "B" in s: if s[0] == "B": s = s[1:len(s)+1] s = s.replace("0B", "") s = s.replace("1B", "") print(s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,722
s429235378
p04030
u736729525
1565218827
Python
Python (3.4.3)
py
Accepted
17
3064
110
a = [] for c in input(): if c in '01': a.append(c) else: a = a[:-1] print("".join(a))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,723
s405903833
p04030
u278463847
1565164937
Python
Python (3.4.3)
py
Accepted
18
2940
138
s = list(input()) res = [] for i in s: if i == "B": if len(res) != 0: res.pop() else: res.append(i) print(''.join(res))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,724
s642681208
p04030
u578850957
1565145232
Python
Python (3.4.3)
py
Accepted
18
3060
215
s_list = list(input()) ans = [] for s in s_list: if s=='0': ans.append(0) elif s=='1': ans.append(1) if s=='B': if len(ans)>0: del ans[-1] print(''.join(map(str,ans)))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,725
s945006810
p04030
u729535891
1565144541
Python
Python (3.4.3)
py
Accepted
18
3060
288
S = input() keybord = [s for s in S] editor = '' for i in range(len(S)): if keybord[i] == '0': editor += '0' elif keybord[i] == '1': editor += '1' else: if editor == '': continue else: editor = editor[:-1] print(editor)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,726
s080955459
p04030
u228294553
1565112413
Python
Python (3.4.3)
py
Accepted
17
2940
137
s=list(input()) res="" for i in range(len(s)): if s[i]=='0' or s[i]=='1': res+=s[i] else: res=res[:-1] print(res)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,727
s340338357
p04030
u296150111
1565101639
Python
Python (3.4.3)
py
Accepted
17
2940
116
s=input() d="" for i in range(len(s)): if s[i]=="0": d+="0" elif s[i]=="1": d+="1" else: d=d[:-1] print(d)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,728
s111392939
p04030
u999669171
1565066949
Python
Python (3.4.3)
py
Accepted
17
2940
149
strs = input() ans = '' for s in strs : if s == '0' or s == '1': ans += s elif s == 'B': if len(ans) > 0: ans = ans[:-1] print( ans )
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,729
s929026072
p04030
u385309449
1565038838
Python
Python (3.4.3)
py
Accepted
17
2940
146
x = input() while x.count('B') > 0: x = x.replace('0B','') x = x.replace('1B','') if x[0] == 'B': x = x.replace('B','') else: print(x)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,730
s946202577
p04030
u385309449
1565038838
Python
Python (3.4.3)
py
Accepted
17
2940
146
x = input() while x.count('B') > 0: x = x.replace('0B','') x = x.replace('1B','') if x[0] == 'B': x = x.replace('B','') else: print(x)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,731
s942544184
p04030
u188244611
1565015570
Python
Python (3.4.3)
py
Accepted
17
2940
206
# ABC 43, B - unhappy hacking s = input() text = '' for i in s: if i == '1': text += '1' elif i == '0': text += '0' elif i == 'B' and text: text = text[:-1] print(text)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,732
s756684147
p04030
u242518667
1564956918
Python
Python (3.4.3)
py
Accepted
17
3060
221
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(-1) else: continue print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,733
s299057731
p04030
u498397607
1564896942
Python
Python (3.4.3)
py
Accepted
18
2940
113
s = input() output = '' for i in s: if i == 'B': output = output[:-1] else: output += i print(output)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,734
s485753171
p04030
u200785298
1564884122
Python
Python (3.4.3)
py
Accepted
17
3060
508
#!/usr/bin/env python3 import sys sys.setrecursionlimit(300000) def solve(s: str): ret = '' for c in s: if c == 'B': if len(ret) > 0: ret = ret[:-1] else: ret += c print(ret) return def main(): def iterate_tokens(): for line in sys....
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,735
s983231918
p04030
u979418645
1564865566
Python
Python (3.4.3)
py
Accepted
17
3060
295
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': if len(string) != 0 : string.pop() else: pass string_out=''.join(string) print(string_out)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,736
s718987101
p04030
u893931781
1564854687
Python
Python (3.4.3)
py
Accepted
17
2940
227
s=input() result=[] for i in range(len(s)): if s[i]=="B": if len(result) != 0: result.pop(-1) else : result.append(s[i]) mojiretu = ' ' for x in result: mojiretu += x print(mojiretu)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,737
s580575582
p04030
u297651868
1564800918
Python
Python (3.4.3)
py
Accepted
17
3060
193
s=str(input()) a=[] for i in s: if i=='0': a.append('0') elif i=='1': a.append('1') else: if len(a)!=0: del a[-1] for i in a: print(i,end='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,738
s800866729
p04030
u277448038
1564767561
Python
Python (3.4.3)
py
Accepted
17
2940
148
#ABC043B s = input() l = len(s) result = "" for i in range(l): if s[i]!="B": result +=s[i] else: result =result[:-1] print(result)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,739
s812358169
p04030
u416258526
1564746604
Python
Python (3.4.3)
py
Accepted
17
2940
110
s = '' for i in input(): if i=='0': s += '0' elif i=='1': s += '1' else: s = s[:-1] print(s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,740
s159516080
p04030
u118211443
1564661159
Python
Python (3.4.3)
py
Accepted
17
2940
176
s = input() d = 0 m = [] for i in s[::-1]: if i == 'B': d += 1 elif d > 0: d -= 1 else: m.append(i) for i in m[::-1]: print(i, end='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,741
s567835908
p04030
u123745130
1564544804
Python
Python (3.4.3)
py
Accepted
17
2940
133
lst="" i=list(input()) for j in i: if j=="0"or j=="1": lst+=j elif j=="B"and lst!=[]: lst=lst[:-1] print(lst)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,742
s484396639
p04030
u576712004
1564457440
Python
Python (3.4.3)
py
Accepted
17
2940
136
s = input() ans = '' for c in s: if c == 'B': if ans: ans = ans[:-1] else: ans = ans + c print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,743
s031192920
p04030
u921773161
1564426254
Python
Python (3.4.3)
py
Accepted
17
3064
222
s = list(input()) ans = [] for i in range(len(s)): if s[i] == '0': ans.append('0') elif s[i] == '1': ans.append('1') else: if len(ans) != 0: ans.pop(-1) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,744
s999374988
p04030
u514894322
1564361493
Python
Python (3.4.3)
py
Accepted
17
3060
205
s = str(input()) ans = '' for char in s: if char == 'B': if len(ans) == 0: continue else: ans = ans[:-1] elif char == '0': ans = ans + '0' else: ans = ans + '1' print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,745
s047226612
p04030
u271469978
1564271857
Python
Python (3.4.3)
py
Accepted
17
2940
289
def main(): s = input() ans = [] for op in s: if op == '0': ans.append(op) elif op == '1': ans.append(op) else: if len(ans) > 0: ans.pop() print(*ans, sep='') if __name__ == '__main__': main()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,746
s680211598
p04030
u732607917
1564252220
Python
Python (3.4.3)
py
Accepted
17
3060
146
S=input() stream="" for s in S: if s=="0": stream+="0" elif s=="1": stream+="1" elif s=="B": stream=stream[:-1] print(*stream, sep="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,747
s083614524
p04030
u010090035
1564238772
Python
Python (3.4.3)
py
Accepted
17
3060
191
s = input() t = [] for i in range(len(s)): if(s[i] == "B"): if(len(t) > 0): del t[-1] else: t.append(s[i]) for i in range(len(t)): print(t[i],end="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,748
s361037344
p04030
u027929618
1564114838
Python
Python (3.4.3)
py
Accepted
17
2940
163
s = list(input()) ans = "" for c in s: if c == "0" or c == "1": ans += c elif c == "B" and ans != "": ans = ans[:len(ans) - 1] print("{}".format(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,749
s267901262
p04030
u324549724
1564105126
Python
Python (3.4.3)
py
Accepted
17
2940
146
a = input() ans = "" for c in a: if (c == '0') | (c == '1'): ans += c else: if not ans == "": ans = ans[:len(ans)-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,750
s063819258
p04030
u668503853
1564069666
Python
Python (3.4.3)
py
Accepted
17
3064
133
S=input() li=[] for s in S: if s=="B": try: li.pop(-1) except: pass else: li.append(s) print("".join(li))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,751
s200757842
p04030
u759412327
1564033279
Python
Python (3.4.3)
py
Accepted
17
2940
112
s = input() z = [] for i in s: if i=="B": if z: z.pop() else: z.append(i) print("".join(z))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,752
s061308543
p04030
u759412327
1564033088
Python
Python (3.4.3)
py
Accepted
17
2940
138
s = input() z = [] for i in s: if i=="0" or i=="1": z.append(i) elif i=="B" and len(z)!=0: z.pop() else: print("".join(z))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,753
s621765511
p04030
u408620326
1564014947
Python
Python (3.4.3)
py
Accepted
17
2940
74
a='' for s in input(): if s!='B': a+=s else: a=a[:-1] print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,754
s843518191
p04030
u201660334
1564002664
Python
Python (3.4.3)
py
Accepted
18
3060
162
s = input() ans = "" for i in s: if i == "0": ans += "0" elif i == "1": ans += "1" else: if ans != "": ans = ans[:len(ans) - 1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,755
s549554736
p04030
u278356323
1563991014
Python
Python (3.4.3)
py
Accepted
17
3060
200
#ABC043b import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) s = input() ans = "" for i in s: if (i == "B"): ans = ans[:len(ans) - 1] else: ans += i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,756
s741760465
p04030
u369338402
1563949024
Python
Python (3.4.3)
py
Accepted
17
3064
125
s=input() res='' for i in range(len(s)): if s[i]!='B': res+=s[i] elif len(res)>0: res=res[:len(res)-1] print(res)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,757
s391310366
p04030
u178888901
1563935985
Python
Python (3.4.3)
py
Accepted
18
2940
135
lst = list(input()) st = '' for i in lst: if i != 'B': st += i elif st != '' and i == 'B': st = st[:len(st) - 1] print(st)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,758
s748194888
p04030
u537782349
1563901663
Python
Python (3.4.3)
py
Accepted
17
2940
113
a = list(input()) b = "" for i in a: if i == "B": b = b[:len(b)-1] else: b += i print(b)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,759
s383922215
p04030
u777283665
1563878347
Python
Python (3.4.3)
py
Accepted
29
3060
179
s = list(input()) ans = "" for i in s: if i == "0": ans += "0" elif i == "1": ans += "1" else: try: ans = ans[:-1] except: continue print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,760
s579260315
p04030
u614734359
1563654181
Python
Python (3.4.3)
py
Accepted
17
2940
178
s = [i for i in input()] ans = [] for c in s: if c is '0' or c is '1': ans.append(c) else: try: ans.pop(-1) except: pass print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,761
s254815112
p04030
u948524308
1563640331
Python
Python (3.4.3)
py
Accepted
17
2940
128
s = input() a ="" for i in range(len(s)): if s[i] == "B": a = a[0:len(a)-1] else: a = a + s[i] print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,762
s172913703
p04030
u948524308
1563632400
Python
Python (3.4.3)
py
Accepted
17
2940
182
s = list(input()) a ="" for i in range(len(s)): if s[i] == "B": new_a = a[0:len(a)-1] a = new_a else: new_a = str(a) + s[i] a = new_a print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,763
s299105797
p04030
u537782349
1563595828
Python
Python (3.4.3)
py
Accepted
17
2940
101
a = input() b = "" for i in a: if i == "B": b = b[:-1] else: b += i print(b)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,764
s147405420
p04030
u797016134
1563592160
Python
Python (3.4.3)
py
Accepted
17
2940
192
s = input() a = '' for x in s: if x == '0': a += '0' elif x == '1': a += '1' else: if a != '': #a = list(a) a = a[:-1] print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,765
s578163831
p04030
u845620905
1563559448
Python
Python (3.4.3)
py
Accepted
17
2940
112
s = input() ans = "" for i in s: if(i == 'B'): ans = ans[:-1] else: ans += i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,766
s890790935
p04030
u828766688
1563498991
Python
Python (3.4.3)
py
Accepted
17
3060
191
S = input() lis = [] for s in S: if s == "0": lis.append("0") elif s == "1": lis.append("1") elif len(lis) > 0: del lis[-1] print ("".join(lis))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,767
s110381583
p04030
u282657760
1563413074
Python
Python (3.4.3)
py
Accepted
17
2940
146
s = str(input()) a = str() for i in range(len(s)): if s[i] == '0': a += '0' elif s[i] == '1': a += '1' else: a = a[:-1] print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,768
s531898243
p04030
u257332942
1563410329
Python
Python (3.4.3)
py
Accepted
17
2940
192
s = input() a = '' for x in s: if x == '0': a += '0' elif x == '1': a += '1' else: if a != '': #a = list(a) a = a[:-1] print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,769
s835345503
p04030
u888512581
1563399473
Python
Python (3.4.3)
py
Accepted
17
2940
126
s = list(input()) str = "" for i in range(len(s)): if s[i] == 'B': str = str[0:-1] else: str += s[i] print(str)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,770
s029497505
p04030
u103341055
1563307281
Python
Python (3.4.3)
py
Accepted
17
2940
214
s = [ n for n in input()] ans = [] for i in range(len(s)): if s[i] == "B": if ans: ans.pop(-1) else: continue else: ans.append(s[i]) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,771
s949711848
p04030
u593938737
1563274796
Python
Python (3.4.3)
py
Accepted
17
3068
221
import sys def main(): s = input() output = '' for i in s: if i == 'B': output = output[0:-1] else: output += i print(output) if __name__ == "__main__": main()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,772
s879924354
p04030
u800258529
1563256448
Python
Python (3.4.3)
py
Accepted
17
2940
103
s=input() a='' for i in range(len(s)): if s[i]=='0' or s[i]=='1':a+=s[i] else:a=a[:-1] print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,773
s186819116
p04030
u016622494
1563249793
Python
Python (3.4.3)
py
Accepted
18
2940
161
S = input() str = [] result = "" flg = 0 for i in range(len(S)): if S[i] == 'B': result = result[:-1] else: result += S[i] print(result)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,774
s949765716
p04030
u480138356
1563139476
Python
Python (3.4.3)
py
Accepted
17
3064
281
s = list(input()) tmp = [0] * 10 num = 0 for i in range(len(s)): if s[i] == "0": tmp[num] = "0" num += 1 elif s[i] == "1": tmp[num] = "1" num += 1 else: num = max(0, num-1) for i in range(num): print(tmp[i],end="") print()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,775
s247823549
p04030
u334260611
1563124684
Python
Python (3.4.3)
py
Accepted
17
2940
306
Key_in = list(input()) output = [] for key in Key_in: if key == '0': output.append('0') elif key == '1': output.append('1') elif key =='B': if len(output) != 0: output.pop() else: pass for char in output: print(char, end='') print()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,776
s371524881
p04030
u191635495
1563029611
Python
Python (3.4.3)
py
Accepted
17
2940
147
s = input() res = '' for e in s: if e != 'B': res += e else: if len(s) != 0: res = res[0:len(res)-1] print(res)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,777
s482837221
p04030
u933341648
1563029463
Python
Python (3.4.3)
py
Accepted
17
2940
112
s = input() res = '' for i in s: if i == 'B': res = res[:-1] else: res += i print(res)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,778
s346232504
p04030
u933341648
1563029242
Python
Python (3.4.3)
py
Accepted
17
2940
141
s = input() res = '' for i in s: if i == 'B': if len(res) > 0: res = res[:-1] else: res += i print(res)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,779
s680804389
p04030
u405256066
1562992043
Python
Python (3.4.3)
py
Accepted
17
3060
229
from sys import stdin s = (stdin.readline().rstrip()) ans = "" for i in s: if i == "0": ans = ans + "0" elif i == "1": ans = ans + "1" elif i == "B" and len(ans) != 0: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,780