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
s573555992
p04030
u361826811
1580831805
Python
Python (3.4.3)
py
Accepted
17
3060
382
""" author : halo2halo date : 4, Feb, 2020 """ import sys # import itertools # import numpy as np read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines S = readline().decode('utf8').rstrip() lis = [] for m in S: if m != 'B': lis.append(m) else: ...
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,181
s958994299
p04030
u230621983
1580788283
Python
Python (3.4.3)
py
Accepted
17
2940
162
s = input() ans = '' for c in s: if c == '0': ans+='0' elif c == '1': ans+='1' else: if s: 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,182
s216686500
p04030
u743164083
1580774955
Python
Python (3.4.3)
py
Accepted
17
2940
177
s = list(input()) o = [] for i in s: if i == "B": if len(o) == 0: pass else: o.pop(-1) else: o += [i] print("".join(o))
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,183
s859595738
p04030
u984276646
1580752080
Python
Python (3.4.3)
py
Accepted
17
3060
180
s = input() S = "" for i in range(len(s)): if s[i] == "0": S = S[:] + "0" elif s[i] == "1": S = S[:] + "1" elif s[i] == "B" and S != "": S = S[:len(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,184
s225017250
p04030
u353855427
1580751330
Python
Python (3.4.3)
py
Accepted
17
3060
157
S = input() ans = "" for i in range(len(S)): if S[i] == "0": ans+="0" elif S[i] == "1": ans+="1" else: 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,185
s831340945
p04030
u686230543
1580705111
Python
Python (3.4.3)
py
Accepted
17
2940
135
display = [] for s in input(): if s == 'B': if display: display.pop() else: display.append(s) print(''.join(display))
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,186
s012193734
p04030
u361381049
1580697550
Python
Python (3.4.3)
py
Accepted
17
3060
242
s = list(input()) lis = [] for i in range(len(s)): if s[i] == '1' or s[i] == '0': lis.append(s[i]) elif len(lis) >= 1 and s[i] == 'B': lis.pop(-1) ans = lis[0] for i in range(1, len(lis)): ans += lis[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,187
s559107201
p04030
u979038517
1580695912
Python
Python (3.4.3)
py
Accepted
17
3060
284
def main(): data = input() result = "" for chr in data: if chr == "0": result += "0" elif chr == "1": result += "1" elif chr == "B": result = result[:-1] print(result) 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,188
s005457042
p04030
u975644365
1580683002
Python
Python (3.4.3)
py
Accepted
17
2940
129
s = input() ans = "" for i in range(len(s)): if s[i] != 'B': ans += s[i] 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,189
s998475693
p04030
u927680443
1580540870
Python
Python (3.4.3)
py
Accepted
18
2940
126
s = input() l = [] le = len(s) for i in s: if i=='B': if len(l)>0: l.pop() else: l.append(i) print(''.join(l))
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,190
s952880737
p04030
u816631826
1580540355
Python
Python (3.4.3)
py
Accepted
17
3060
207
s=input() l=[] for i in range(len(s)): if s[i]=='0': l.append('0') elif s[i]=='1': l.append('1') elif s[i]=='B' and len(l)!=0: l.pop() for i in l: 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,191
s531744176
p04030
u018679195
1580540228
Python
Python (3.4.3)
py
Accepted
18
2940
190
s = input() l = [] for i in range(len(s)): if s[i] != 'B': l.append(s[i]) else: if len(l)==0: pass else: del l[-1] print("".join(l))
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,192
s132762942
p04030
u863370423
1580539784
Python
Python (3.4.3)
py
Accepted
17
3060
277
s="" l=[] string = input() key=[] for j in string: key.append(j) for i in key: if i=='0': l.append(i) elif i=='1': l.append(i) elif i=='B': if len(l)==0: pass else: l.pop() for i in l: s=s+i 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,193
s177142580
p04030
u353919145
1580538613
Python
Python (3.4.3)
py
Accepted
18
3064
308
string = input() l = 0 string1 = [] for i in string: if(i == '1'): string1.append('1') l += 1 elif(i == '0'): string1.append('0') l += 1 elif(i == 'B'): if(l > 0): string1.pop() l = l - 1 for i in string1: 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,194
s295254611
p04030
u089230684
1580537810
Python
Python (3.4.3)
py
Accepted
17
3064
283
s = input() len = 0 op = [] for i in s: if(i == '1'): op.append('1') len += 1 elif(i == '0'): op.append('0') len += 1 elif(i == 'B'): if(len > 0): op.pop() len = len - 1 for i in op: 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,195
s753339636
p04030
u863370423
1580537683
Python
Python (3.4.3)
py
Accepted
17
2940
158
s = input() s = list(s) k = [] a = '' for i in s: if k != [] and i == 'B': k.pop() elif i != 'B': k.append(i) print(a.join(k))
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,196
s370351995
p04030
u478888559
1580509786
Python
Python (3.4.3)
py
Accepted
17
2940
148
s = input() output = [] for i in s: if i != "B": output.append(i) elif output != []: output.pop() print(''.join(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,197
s558986793
p04030
u445404615
1580506748
Python
Python (3.4.3)
py
Accepted
17
2940
112
s = input() ans = '' for i in s: if i == 'B': ans = ans[0:-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,198
s324085000
p04030
u113971909
1580505635
Python
Python (3.4.3)
py
Accepted
17
2940
119
S=list(input()) T =[] for i in range(len(S)): if S[i]=='B': T=T[:-1] else: T.append(S[i]) 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,199
s667862248
p04030
u170183831
1580491754
Python
Python (3.4.3)
py
Accepted
17
2940
174
def solve(s): l = [] for c in s: if c != 'B': l.append(c) elif l: l.pop() return ''.join(l) _s = input() print(solve(_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,200
s311350093
p04030
u906481659
1580475956
Python
Python (3.4.3)
py
Accepted
17
2940
142
s = str(input()) s_list = [] for i in s: if i != 'B': s_list.append(i) else: if len(s_list) != 0: s_list.pop() print(''.join(s_list))
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,201
s104930070
p04030
u736995123
1580427556
Python
Python (3.4.3)
py
Accepted
17
2940
326
s=input() def solution(s): new = [] for c in s: if c == '0': new.append('0') elif c == '1': new.append('1') elif c == 'B': try: new.pop() except: pass newnew = ''.join(new) return newnew print(soluti...
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,202
s462650222
p04030
u589578850
1580398251
Python
Python (3.4.3)
py
Accepted
17
2940
156
s = input() result = "" for i in s: if i != "B" : result += i else: num = len(result) result = result[:num-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,203
s948809741
p04030
u746849814
1580395921
Python
Python (3.4.3)
py
Accepted
17
3060
198
inputs = list(map(str, input())) output = '' for i in inputs: if i == 'B': output = output[:-1] elif i == '1': output += '1' else: output += '0' 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,204
s439981383
p04030
u682997551
1580351877
Python
Python (3.4.3)
py
Accepted
20
2940
150
s = input() ans = list() for c in s: if c == '0' or c == '1': ans.append(c) elif 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,205
s178449452
p04030
u264681142
1580328876
Python
Python (3.4.3)
py
Accepted
17
2940
117
s = str(input()) r = '' for c in s: if c == 'B': r = r[:-1] elif c == '0' or c == '1': r += c 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,206
s568080118
p04030
u852798899
1580265123
Python
Python (3.4.3)
py
Accepted
17
3060
174
s = input() ans = "" for i in s: if i == '0': ans += '0' if i == '1': ans += '1' if i == 'B': if len(ans) > 0: ans = ans[0: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,207
s235182925
p04030
u857070771
1580217229
Python
Python (3.4.3)
py
Accepted
17
2940
114
s=input() a=[] for i in s: if i == 'B': if a: a.pop() else: pass 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,208
s027532777
p04030
u690037900
1580176273
Python
Python (3.4.3)
py
Accepted
17
2940
143
S=list(input()) stack=[] for s in S: if s!="B": stack.append(s) elif len(stack)!=0: stack.pop() 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,209
s144992355
p04030
u989345508
1580156151
Python
Python (3.4.3)
py
Accepted
17
2940
159
ans="" s=input() for i in s: if i=="0": ans+="0" elif i=="1": ans+="1" else: if i!=[]: 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,210
s801702579
p04030
u686036872
1580022671
Python
Python (3.4.3)
py
Accepted
17
2940
174
S = list(str(input())) X=[] for i in S: if i == "0" or i == "1": X.append(i) elif i == "B": if len(X)>0: X.pop(len(X)-1) print("".join(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,211
s179067087
p04030
u557792847
1579987759
Python
Python (3.4.3)
py
Accepted
17
2940
299
import sys # キー入力 key = input() display = "" for i in key: if i == '0': # '0'を追加 display += '0' if i == '1': # '1'を追加 display += '1' if i == 'B': # 一番後ろの文字を削除 display = display[:-1] print(display)
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,212
s659574992
p04030
u858436319
1579983459
Python
Python (3.4.3)
py
Accepted
17
3060
221
S = input() List = [] for i in range(len(S)): if S[i] == "0" or S[i] == "1": List.append(S[i]) else: if len(List) != 0: List.pop() for j in range(len(List)): print(List[j], 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,213
s884730706
p04030
u698197687
1579925528
Python
Python (3.4.3)
py
Accepted
17
3060
675
def keyboard_function(input_keyboard, editor_display): if input_keyboard=='B': if editor_display==[]: return editor_display else: editor_display.pop() if input_keyboard=='0': editor_display.append('0') if input_keyboard=='1': editor_display.append('1'...
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,214
s465911489
p04030
u790048565
1579781309
Python
Python (3.4.3)
py
Accepted
17
2940
177
s = input() result = '' for i in s: if (i == 'B'): if len(result) == 0: continue else: result = result[:-1] else: result = result + 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,215
s348447177
p04030
u995062424
1579741719
Python
Python (3.4.3)
py
Accepted
17
2940
196
s = input() a = [] for i in range(len(s)): if (s[i] == "B"): if(len(a) <= 0): continue else: a.pop() else: a.append(s[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,216
s099820910
p04030
u053699292
1579737440
Python
Python (3.4.3)
py
Accepted
17
3060
226
if __name__ == '__main__': S = input() S = [s.split()[0] for s in S] ans = [] for i in range(0,len(S)): if S[i] == 'B' and len(ans)>0: ans.pop() elif S[i] != 'B': ans.append(S[i]) 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,217
s353469323
p04030
u116722061
1579711794
Python
Python (3.4.3)
py
Accepted
18
2940
122
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,218
s019549706
p04030
u071868443
1579598542
Python
Python (3.4.3)
py
Accepted
17
2940
203
operation = str(input()) s = '' for i in range(len(operation)): if operation[i] == 'B': if not s == '': s = s[:len(s)-1] elif operation[i] == '0': s += '0' else: 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,219
s556211567
p04030
u734434881
1579591913
Python
Python (3.4.3)
py
Accepted
17
2940
286
inputs = input() answer = '' for s in inputs: if s == '0': answer = answer + '0' elif s == '1': answer = answer + '1' elif s == 'B' and answer == '': answer = answer + '' elif s == 'B' and answer != '': answer = answer[:-1] 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,220
s885787667
p04030
u355865104
1579574868
Python
Python (3.4.3)
py
Accepted
17
2940
326
if __name__ == "__main__": input_str = input() ans = [] for s in input_str: if s == "0": ans.append("0") elif s == "1": ans.append("1") else: if len(ans) == 0: continue else: ans.pop() print("".join(...
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,221
s950761625
p04030
u149991748
1579570162
Python
Python (3.4.3)
py
Accepted
17
2940
171
#文字列の入力 s = input() f = '' for i in s: if i == '0' or i == '1': f += i elif i == 'B': f = f[:-1] else: continue print(f)
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,222
s748161657
p04030
u383725933
1579470045
Python
Python (3.4.3)
py
Accepted
17
2940
148
L="" N=str(input()) for i in N: if i==str(0): L+="0" elif i==str(1): L+="1" elif i==str("B"): L=L[0:-1] print(L)
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,223
s909894202
p04030
u580697892
1579397887
Python
Python (3.4.3)
py
Accepted
17
2940
144
# coding: utf-8 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,224
s580758218
p04030
u106342872
1579369359
Python
Python (3.4.3)
py
Accepted
17
2940
230
arr = input() arr = list(str(arr)) stack = [] for i in range(len(arr)): if arr[i] == '0' or arr[i] == '1': stack.append(arr[i]) elif arr[i] == 'B' and len(stack) != 0: stack.pop(-1) 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,225
s589355580
p04030
u506287026
1579326010
Python
Python (3.4.3)
py
Accepted
17
2940
153
chars = input() ans = [] for c in chars: if c in ['0', '1']: ans.append(c) elif 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,226
s385417991
p04030
u293459994
1579316967
Python
Python (3.4.3)
py
Accepted
17
2940
164
s = input() ret = '' for i in range(len(s)): if s[i] == 'B': if len(ret) > 0: ret = ret[:-1] else: ret = ret + s[i] print(ret)
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,227
s968767763
p04030
u548303713
1579288687
Python
Python (3.4.3)
py
Accepted
17
3060
260
s=list(input()) ans=[] num=0 for i in range(len(s)): if s[i]=="1": ans.append("1") num+=1 elif s[i]=="0": ans.append("0") num+=1 else: if num!=0: del ans[-1] num-=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,228
s490539482
p04030
u779170803
1579243830
Python
Python (3.4.3)
py
Accepted
17
3064
546
INT = lambda: int(input()) INTM = lambda: map(int,input().split()) STRM = lambda: map(str,input().split()) STR = lambda: str(input()) LIST = lambda: list(map(int,input().split())) LISTS = lambda: list(map(str,input().split())) def do(): ss=STR() ans=[] for s in ss: if s=='0'or s=='1': an...
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,229
s219045443
p04030
u072717685
1579238164
Python
Python (3.4.3)
py
Accepted
17
2940
202
s = input() while(s.count('B')): if s.count('0B'): s = s.replace('0B','') elif s.count('1B'): s = s.replace('1B','') else: 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,230
s869988758
p04030
u427984570
1579233097
Python
Python (3.4.3)
py
Accepted
17
2940
103
s = input() ans = '' for i in s: if i == 'B': ans = ans[:-1] else: ans = 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,231
s280830453
p04030
u314089899
1579230516
Python
Python (3.4.3)
py
Accepted
17
3060
267
#043b s = list(input()) ans = [] for pushed_key in s: if pushed_key == "0": ans.append("0") elif pushed_key == "1": ans.append("1") elif pushed_key == "B": 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,232
s659937870
p04030
u780206746
1579228233
Python
Python (3.4.3)
py
Accepted
17
3060
494
class KeySeq: def __init__(self): self.seq = [] def _add_char(self, ch): if ch in ['0', '1']: self.seq.append(ch) def _backspace(self): self.seq = self.seq[:len(self.seq)-1] def apply(self, ch): if ch == 'B': self._backspace() else: ...
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,233
s281207031
p04030
u780206746
1579228195
Python
Python (3.4.3)
py
Accepted
17
3060
494
class KeySeq: def __init__(self): self.seq = [] def _add_char(self, ch): if ch in ['0', '1']: self.seq.append(ch) def _backspace(self): self.seq = self.seq[:len(self.seq)-1] def apply(self, ch): if ch == 'B': self._backspace() else: ...
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,234
s686026555
p04030
u580697892
1579203142
Python
Python (3.4.3)
py
Accepted
17
2940
144
# coding: utf-8 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,235
s384759340
p04030
u853185302
1579124552
Python
Python (3.4.3)
py
Accepted
18
2940
112
s = input() ans = [] for i in s: if i == "B": ans = ans[:-1] else: ans.append(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,236
s258036438
p04030
u846652026
1579117720
Python
Python (3.4.3)
py
Accepted
17
2940
128
s=input() ans="" for ss in s: if ss=="0": ans+="0" elif ss=="1": ans+="1" 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,237
s367360129
p04030
u380524497
1579112378
Python
Python (3.4.3)
py
Accepted
17
2940
225
S = input() res = [] for s in S: if s == '1': res.append('1') elif s == '0': res.append('0') else: if not res: continue else: res.pop() 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,238
s441930802
p04030
u580697892
1579062504
Python
Python (3.4.3)
py
Accepted
17
2940
144
# coding: utf-8 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,239
s978761760
p04030
u867848444
1579059189
Python
Python (3.4.3)
py
Accepted
17
2940
188
s=input() ans='' for i in range(len(s)): a=s[i] if a=='0': ans+='0' elif a=='1': ans+='1' else: 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,240
s394576949
p04030
u671211357
1579055815
Python
Python (3.4.3)
py
Accepted
17
3060
273
s=input() ans = [] for i in range(len(s)): ans.append(s[i]) j=1 while True: if ans[0]=="B": ans.pop(0) elif j>=len(ans): break elif ans[j]=="B": ans.pop(j-1) ans.pop(j-1) j-=1 else: j+=1 print(*ans,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,241
s275804298
p04030
u854685063
1579054061
Python
Python (3.4.3)
py
Accepted
17
3064
735
import sys import math def i():return int(sys.stdin.readline().replace("\n","")) def i2():return map(int,sys.stdin.readline().replace("\n","").split()) def s():return str(sys.stdin.readline().replace("\n","")) def l():return list(sys.stdin.readline().replace("\n","")) def intl():return [int(k) for k in sys.stdin.readli...
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,242
s247606891
p04030
u225388820
1579053928
Python
Python (3.4.3)
py
Accepted
18
2940
168
s=input() t=[] for i in s: if i=="0": t.append(0) elif i=="1": t.append(1) else: if len(t)>0: t.pop(-1) print(*t,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,243
s179046504
p04030
u761989513
1579053728
Python
Python (3.4.3)
py
Accepted
17
2940
120
s = input() t = "" for i in s: if i == "B": if t: 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,244
s378366225
p04030
u485566817
1578961365
Python
Python (3.4.3)
py
Accepted
17
2940
215
s = input() ans = [] for i in s: if i == "0": ans.append("0") elif i == "1": ans.append("1") elif i == "B" and len(ans) == 0: ans else: 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,245
s787594840
p04030
u540761833
1578943551
Python
Python (3.4.3)
py
Accepted
17
2940
136
s = input() ans = '' for i in range(len(s)): if s[i] == 'B': ans = ans[:len(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,246
s074889076
p04030
u609061751
1578939844
Python
Python (3.4.3)
py
Accepted
18
3060
230
import sys input = sys.stdin.readline ans = [] s = list(input().rstrip()) for i in s: if i == "0": ans.append("0") elif i == "1": ans.append("1") elif 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,247
s532479047
p04030
u102004737
1578937394
Python
Python (3.4.3)
py
Accepted
17
2940
136
s=input() x='' for i in range(len(s)): if s[i]=='0': x=x+'0' elif s[i]=='1': x=x+'1' elif s[i]=='B': x=x[:-1] 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,248
s058258299
p04030
u749770850
1578908546
Python
Python (3.4.3)
py
Accepted
17
3060
190
s = input() ans = [] for i in range(len(s)): if s[i] == "B" and len(ans) >= 1: ans.pop(-1) elif s[i] == "0": ans.append("0") elif s[i] == "1": ans.append("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,249
s237069978
p04030
u243572357
1578808896
Python
Python (3.4.3)
py
Accepted
17
2940
113
t = "" s = input() for i in s: if i == 'B' and len(t) > 0: t = t[:-1] elif i != 'B': 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,250
s893474123
p04030
u971237642
1578781257
Python
Python (3.4.3)
py
Accepted
20
3316
307
# -*- coding: utf-8 -*- from collections import deque s = list(input()) ans = deque() for i in s: if i == "0": ans.extend("0") elif i == "1": ans.extend("1") else: if len(ans) == 0: pass else: ans.pop() #print(ans) 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,251
s687005324
p04030
u672316981
1578682218
Python
Python (3.4.3)
py
Accepted
17
3060
273
s = str(input()) lst = [] for i in range(len(s)): if s[i]=='B': if len(lst)!=0: del lst[-1] else: continue else: for j in range(2): if int(s[i])==j: lst.append(str(j)) print(''.join(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,252
s572100155
p04030
u620868411
1578543076
Python
Python (3.4.3)
py
Accepted
17
2940
156
# -*- coding: utf-8 -*- s = input() res = "" for c in s: if c=="B" and len(res)>0: res = res[:-1] elif c!="B": res += c 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,253
s262879046
p04030
u823044869
1578533639
Python
Python (3.4.3)
py
Accepted
17
2940
185
s = list(input()) sStack = [] for ts in s: if ts == 'B': #なにか入っていたらpop if sStack: sStack.pop() else: sStack.append(ts) print(''.join(sStack))
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,254
s531131070
p04030
u075155299
1578505188
Python
Python (3.4.3)
py
Accepted
17
2940
124
s=input() n="" for i in s: if i in ["0","1"]: n=n+i elif i=="B" and n=="": pass else: n=n[0:-1] print(n)
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,255
s563579806
p04030
u280552586
1578435345
Python
Python (3.4.3)
py
Accepted
17
2940
165
S = list(input()) stuck = [] for s in S: if s != 'B': stuck.append(s) elif s == 'B' and len(stuck) != 0: stuck.pop() print(*stuck, 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,256
s369796860
p04030
u268792407
1578433921
Python
Python (3.4.3)
py
Accepted
17
2940
149
s=input() ans="" for i in s: if ans =="" and i=="B": continue elif ans != "" and 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,257
s360322497
p04030
u226912938
1578414215
Python
Python (3.4.3)
py
Accepted
18
3064
262
s = str(input()) ans = '' for i in range(len(s)): if s[i] == '1': ans = ans + '1' elif s[i] == '0': ans = ans + '0' elif s[i] == 'B': if len(ans) >= 2: ans = ans[:-1] else: 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,258
s044803195
p04030
u187058053
1578354203
Python
Python (3.4.3)
py
Accepted
17
2940
125
kekka = "" for i in input(): if i=="B": kekka=kekka[:-1] else: kekka=kekka+i 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,259
s862165062
p04030
u187058053
1578353791
Python
Python (3.4.3)
py
Accepted
17
2940
177
s = list(str(input())) kekka = [] for i in range(len(s)): if s[i]!="B": kekka.append(s[i]) elif kekka!=[]: kekka.pop() print(''.join(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,260
s037236520
p04030
u735008991
1578291238
Python
Python (3.4.3)
py
Accepted
17
2940
105
ans = "" for x in input(): if x == "B": ans = ans[:-1] else: ans += x 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,261
s014646411
p04030
u452269253
1578276690
Python
Python (3.4.3)
py
Accepted
17
2940
140
s = input() ans = "" for a in s: if a == "B": if len(ans) != 0: ans = ans[:-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,262
s327832579
p04030
u047816928
1578249040
Python
Python (3.4.3)
py
Accepted
17
2940
130
s = input() ans = [None]*len(s) n = 0 for c in s: ans[n] = c n += 1 if c=='B': n = max(0, n-2) print(*ans[:n], 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,263
s971590647
p04030
u906077984
1578176028
Python
Python (3.4.3)
py
Accepted
17
2940
104
ans = "" for s in input(): if s == "B": ans = ans[:-1] else: ans += s 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,264
s545327904
p04030
u906077984
1578175888
Python
Python (3.4.3)
py
Accepted
17
3060
297
s = list(map(str,input())) ans = "" count = 0 for i in s: if i == "0": ans += "0" count += 1 elif i == "1": ans += "1" count += 1 else: if count == 0 : continue else: ans = ans[:-1] count+=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,265
s123849627
p04030
u992875223
1578170275
Python
Python (3.4.3)
py
Accepted
17
2940
170
S = input() ans = [] for i in S: if i == '1': ans.append('1') if i == '0': ans.append('0') if i == 'B': if 0 < len(ans): 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,266
s750965471
p04030
u668352391
1578091669
Python
Python (3.4.3)
py
Accepted
17
3064
236
s = input() s_list = [s[_] for _ in range(len(s))] output = list() for c in s_list: if c == '0': output.append('0') elif c == '1': output.append('1') else: if len(output) > 0: output.pop() print(''.join(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,267
s621761755
p04030
u757117214
1578078935
Python
Python (3.4.3)
py
Accepted
17
3060
159
s=[i for i in input()] e=[] for i in s: if i=="0": e.append("0") elif i=="1": e.append("1") else: if e: e.pop(-1) print("".join(e))
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,268
s177125779
p04030
u861141787
1578024521
Python
Python (3.4.3)
py
Accepted
17
2940
240
S = input() ans = "" for i in range(len(S)): if S[i] == "B": if ans == "": pass else: ans = ans[:-1] elif S[i] == "0": ans += "0" elif S[i] == "1": 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,269
s506237050
p04030
u444238096
1577938859
Python
Python (3.4.3)
py
Accepted
17
2940
323
#入力 a = input() #空のリスト ans = [] for c in a:#cが0文字目からaまで if c != "B": #Bでなければアペンド ans.append(c) else: if len(ans) != 0 :ans.pop()#Bであってさらにリストがからでなければpop print("".join(ans)) #listをくっつけた文字にできる
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,270
s133035631
p04030
u677121387
1577921982
Python
Python (3.4.3)
py
Accepted
17
2940
113
s = input() ans = "" for c in s: if c != "B": ans += c 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,271
s621589086
p04030
u677121387
1577921720
Python
Python (3.4.3)
py
Accepted
17
2940
138
s = input() ans = [] for c in s: if c != "B": ans.append(c) 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,272
s213651285
p04030
u684305751
1577907940
Python
Python (3.4.3)
py
Accepted
17
2940
68
d="" for s in input(): if s=="B":d=d[:-1] else:d+=s 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,273
s096185717
p04030
u735069283
1577853936
Python
Python (3.4.3)
py
Accepted
17
2940
165
s=str(input()) list =[] for i in range(len(s)): if s[i]=='B': list = list[0:-1] else: list +=s[i] k='' for i in range(len(list)): k +=list[i] print(k)
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,274
s165194673
p04030
u608726540
1577850506
Python
Python (3.4.3)
py
Accepted
17
2940
161
s=list(input()) a=[] for i in range(len(s)): if s[i]=='0' or s[i]=='1': a.append(s[i]) elif len(a)>0: del a[len(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,275
s488477652
p04030
u076764813
1577799911
Python
Python (3.4.3)
py
Accepted
18
2940
223
s=list(input()) ans=[] for i in range(len(s)): if s[i] == "0": ans.append(s[i]) elif s[i] == "1": ans.append(s[i]) if s[i] == "B" and ans !=[]: ans.pop(-1) print(*ans, 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,276
s812126632
p04030
u530786533
1577760285
Python
Python (3.4.3)
py
Accepted
18
2940
192
s = input() ans = [] for x in s: if (x == '0'): ans.append('0') elif (x == '1'): ans.append('1') elif (x == 'B' and 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,277
s324939580
p04030
u007263493
1577736874
Python
Python (3.4.3)
py
Accepted
18
2940
169
s = input() S = list(s) ans = [] for i in range(len(s)): if S[i] == 'B': if ans: 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,278
s208180430
p04030
u683134447
1577568167
Python
Python (3.4.3)
py
Accepted
18
2940
151
sl = list(input()) ans = [] for s in sl: if s != "B": ans.append(s) 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,279
s535671918
p04030
u089142196
1577560035
Python
Python (3.4.3)
py
Accepted
17
2940
176
s=input() str="" for item in s: if item=="0": str+="0" elif item=="1": str+="1" else: if len(str)>0: str=str[0:-1] else: pass 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,280