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
s400505971
p04030
u981931040
1585136816
Python
Python (3.4.3)
py
Accepted
17
3060
182
S = input() ans = [] for s in S: if s == "0": ans.append(0) elif s == "1": ans.append(1) else: if 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,204,981
s977226944
p04030
u414699019
1585136737
Python
Python (3.4.3)
py
Accepted
17
2940
135
s=input() ans=[] for i in s: if i=="0" or i=="1": ans.append(i) else: ans=ans[:len(ans)-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,204,982
s197282047
p04030
u368249389
1585136596
Python
Python (3.4.3)
py
Accepted
17
2940
307
# Problem B - バイナリックイージー # input s = list(input()) # initialization result = [] # count for c in s: if c=='B': if len(result)>0: result.pop(-1) elif c=='0': result.append(c) elif c=='1': result.append(c) # output 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,204,983
s826540579
p04030
u836737505
1585136495
Python
Python (3.4.3)
py
Accepted
17
2940
112
s = input() a = "" for i in s: if i == "0" or i == "1": a += 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,204,984
s180447980
p04030
u241159583
1585136312
Python
Python (3.4.3)
py
Accepted
18
3060
197
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 len(ans) == 0: continue 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,204,985
s931781046
p04030
u599114793
1585136268
Python
Python (3.4.3)
py
Accepted
18
3060
208
s = list(input()) ans = [] for i in range(len(s)): if s[i] == "0": ans.append("0") elif s[i] == "1": ans.append("1") elif s[i] == "B": ans = ans[0:-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,204,986
s396553659
p04030
u189487046
1585136251
Python
Python (3.4.3)
py
Accepted
17
2940
198
S = list(input()) ans = ['']*11 index = 0 for s in S: if s != 'B': ans[index] = s index += 1 elif index >= 1: index -= 1 ans[index] = '' 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,204,987
s075623100
p04030
u761320129
1585136204
Python
Python (3.4.3)
py
Accepted
17
2940
129
S = input() a = [] for c in S: if c == 'B': if a: a.pop() else: a.append(c) 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,204,988
s805250125
p04030
u392319141
1585136181
Python
Python (3.4.3)
py
Accepted
21
3316
185
from collections import deque S = input() ans = deque([]) for s in S: if s == 'B': if ans: ans.pop() else: ans.append(s) print(''.join(list(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,204,989
s050741825
p04030
u052499405
1585136176
Python
Python (3.4.3)
py
Accepted
17
2940
230
#!/usr/bin/env python3 import sys input = sys.stdin.readline s = input().rstrip() ans = [] for ch in s: if ch in "01": ans.append(ch) if ch == "B" and ans: ans.pop() print("".join([item for item in 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,204,990
s141837272
p04030
u145600939
1585136169
Python
Python (3.4.3)
py
Accepted
18
2940
154
s = list(input()) ans = '' for i in range(len(s)): if s[i] == 'B' and ans != '': ans = ans[:-1] elif s[i] != 'B': ans = 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,204,991
s349073876
p04030
u977661421
1585136139
Python
Python (3.4.3)
py
Accepted
17
2940
218
# -*- coding: utf-8 -*- s = list(input()) ans = [] for i in s: if len(ans) > 0 and i == 'B': ans.pop() if i == '0': ans.append('0') if 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,204,992
s436803045
p04030
u789205676
1585111731
Python
Python (3.4.3)
py
Accepted
18
3060
223
n = input() res = [] for char in n: if char == '0': res.append(char) elif char == '1': res.append(char) elif char == 'B': if len(res) > 0: 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,204,993
s941365065
p04030
u768496010
1585108335
Python
Python (3.4.3)
py
Accepted
17
2940
219
n = input() res = [] for char in n: if char == '0': res.append(char) elif char == '1': res.append(char) elif char == 'B': if len(res) > 0: 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,204,994
s457560209
p04030
u110580875
1585095130
Python
Python (3.4.3)
py
Accepted
18
2940
159
s=input() ans="" for i in range(len(s)): if s[i]=="B": if ans=="": pass else: 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,204,995
s783558198
p04030
u735654057
1585056835
Python
Python (3.4.3)
py
Accepted
22
2940
165
s = input() p = [] for token in list(s): if token == "B": if not len(p) == 0: p.pop() else: p.append(token) print("".join(p))
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,204,996
s648398194
p04030
u519835472
1584993283
Python
Python (3.4.3)
py
Accepted
18
2940
189
S = input() e = "" for i in range(len(S)): if S[i] == "0": e += "0" elif S[i] == "1": e += "1" else: if e != "": e = e[:len(e) -1] print(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,204,997
s131042249
p04030
u187516587
1584924405
Python
Python (3.4.3)
py
Accepted
17
2940
142
s=input() a="" for i in s: if i=="B": if a: a=a[:-1] elif i=="0": a+="0" else: 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,204,998
s038631982
p04030
u230717961
1584921644
Python
Python (3.4.3)
py
Accepted
17
2940
153
s = input() ans = [] for i in s: if i == "B": if len(ans) != 0: ans.pop() 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,204,999
s287654108
p04030
u017415492
1584838485
Python
Python (3.4.3)
py
Accepted
17
2940
162
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.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,000
s867896776
p04030
u556069480
1584823621
Python
Python (3.4.3)
py
Accepted
17
3060
191
order=input() ans="" for i in range( len( order ) ): if order[i] == "B" and len(ans)>0: ans=ans[:-1] elif order[i] == "0": ans+="0" elif order[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,001
s090669495
p04030
u394731058
1584801285
Python
Python (3.4.3)
py
Accepted
17
3060
241
ansl = [] s = input() for i in range(len(s)): if s[i] == "0": ansl.append("0") elif s[i] == "1": ansl.append("1") elif s[i] == "B": if len(ansl) > 0: ansl.pop() s="" for i in range(len(ansl)): s += ansl[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,002
s046895113
p04030
u580404776
1584795130
Python
Python (3.4.3)
py
Accepted
17
3060
192
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: ans=ans[:-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,003
s144875602
p04030
u697696097
1584749593
Python
Python (3.4.3)
py
Accepted
17
2940
161
ss=input() arr=[] for s in ss: if s=="0": arr.append("0") elif s=="1": arr.append("1") else: if len(arr)>0: arr.pop() print("".join(arr))
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,004
s910460624
p04030
u832039789
1584744531
Python
Python (3.4.3)
py
Accepted
20
2940
132
res = '' for c in input(): if c == 'B': if len(res): res = res[:-1] else: 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,005
s555889816
p04030
u256833330
1584728151
Python
Python (3.4.3)
py
Accepted
17
2940
139
s=input() a='' for c in s: if c=='B' and len(a)!=0: a=a[:-1] elif c=='B': continue else: a=a+c 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,006
s378689383
p04030
u591016708
1584586674
Python
Python (3.4.3)
py
Accepted
17
2940
170
s = input() ans = [] for i in range(len(s)): if s[i] != 'B': ans.append(s[i]) else: if len(ans) == 0: pass 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,007
s785058113
p04030
u124498235
1584586327
Python
Python (3.4.3)
py
Accepted
17
2940
111
s = input() ans = "" for i in list(s): if i == "0" or i == "1": ans += 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,008
s389360163
p04030
u886142147
1584561921
Python
Python (3.4.3)
py
Accepted
18
3064
325
s = input() S = [] for i in range(len(s)): S.append(s[i]) j = 0 while True: if S[j] == "B" and j != 0: del S[j - 1] del S[j - 1] j = 0 elif S[j] == "B" and j == 0: del S[j] else: if j == len(S) - 1 or len(S) == 1: break j = j + 1 print("".joi...
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,009
s783398936
p04030
u880277518
1584559909
Python
Python (3.4.3)
py
Accepted
17
3060
189
s=list(input()) v=[] for s1 in s: if s1=='0': v.append('0') elif s1=='1': v.append('1') elif s1=='B': if len(v)!=0: v.pop() print("".join(v))
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,010
s606521790
p04030
u016323272
1584553856
Python
Python (3.4.3)
py
Accepted
17
2940
230
#ABC043.B s = input() L = [] def kan(a): if a =='0': L.append('0') elif a =='1': L.append('1') else: if L !=[]: L.pop() for b in s: kan(b) c ='' for d in L: c +=d print(c)
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,011
s218416103
p04030
u723583932
1584505552
Python
Python (3.4.3)
py
Accepted
17
3060
241
#abc043 b s=input() ans=[] def sousa(x): if x=="0": ans.append("0") if x=="1": ans.append("1") if x=="B": if ans!=[]: ans.pop() for c in s: sousa(c) x="" for c in ans: x+=c 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,012
s686952657
p04030
u896726004
1584479283
Python
Python (3.4.3)
py
Accepted
17
2940
225
string = input() ans = [] for s in string: if s=='0': ans.append('0') elif s=='1': ans.append('1') else: if len(ans) != 0: ans.pop() for s in ans: print(s, 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,013
s049495157
p04030
u242031676
1584473940
Python
Python (3.4.3)
py
Accepted
17
2940
116
ans = [] for c in input(): if c=="B": if len(ans): ans.pop() else: ans.append(c) 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,014
s621481603
p04030
u288430479
1584456812
Python
Python (3.4.3)
py
Accepted
17
2940
225
s=list(input()) data =[] for i in s: if i=="0": data.append(0) elif i=="1": data.append(1) else: if data!=[]: del data[-1] #joinはリストが文字列のみ data = map(str,data) print(''.join(data))
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,015
s413585003
p04030
u321035578
1584410908
Python
Python (3.4.3)
py
Accepted
17
3064
539
def main(): s = list(input()) now = 0 ans = [''] * 10 for i, ss in enumerate(s): if ss == '0': ans[now] = '0' now += 1 elif ss == '1': ans[now] = '1' now += 1 else: now -= 1 now = max(0,now) 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,016
s459584157
p04030
u576917603
1584389807
Python
Python (3.4.3)
py
Accepted
23
3316
205
a=list(input()) from collections import deque d=deque() for i in a: if i=="0" or i=="1": d.append(i) else: if len(d)==0: continue d.pop() print(''.join(list(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,017
s875531889
p04030
u802963389
1584378864
Python
Python (3.4.3)
py
Accepted
19
3060
98
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,018
s762280483
p04030
u919633157
1584360157
Python
Python (3.4.3)
py
Accepted
17
2940
208
# https://atcoder.jp/contests/abc043/tasks/abc043_b s=input() res=[] for e in s: if e=='B': if res: res.pop() else:continue else: res.append(e) print(*res,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,019
s361944624
p04030
u527993431
1584359537
Python
Python (3.4.3)
py
Accepted
18
3060
179
S=input() L=[] for i in range(len(S)): if S[i]=="1": L.append(1) elif S[i]=="0": L.append(0) elif S[i]=="B": L=L[0:-1] for i in range(len(L)): print(L[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,020
s448750825
p04030
u981931040
1584359412
Python
Python (3.4.3)
py
Accepted
17
2940
141
S = input() ans = [] for s in S: if s == "B": if ans: ans.pop(-1) else: ans.append(s) 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,021
s222525658
p04030
u836737505
1584358933
Python
Python (3.4.3)
py
Accepted
17
2940
112
s = input() a = "" for i in s: if i == "0" or i == "1": a += 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,022
s337975239
p04030
u186838327
1584358796
Python
Python (3.4.3)
py
Accepted
22
2940
216
s = str(input()) n = len(s) ans = [] for i in range(n): if s[i] != 'B': 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,023
s222314433
p04030
u977661421
1584358733
Python
Python (3.4.3)
py
Accepted
19
2940
240
# -*- coding: utf-8 -*- s = list(input()) ans = [] for i in range(len(s)): if s[i] == '0': ans.append('0') if s[i] == '1': ans.append('1') if len(ans) >= 1 and s[i] == 'B': 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,024
s152295741
p04030
u608088992
1584358688
Python
Python (3.4.3)
py
Accepted
20
3316
351
import sys from collections import deque def solve(): input = sys.stdin.readline s = input().strip("\n") q = deque() for i in range(len(s)): if s[i] == "B": if q: q.pop() else: q.append(s[i]) Ans = "" while q: Ans += q.popleft() print(Ans) return 0 if __na...
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,025
s738750119
p04030
u287500079
1584358632
Python
Python (3.4.3)
py
Accepted
37
5144
888
import sys, re, os from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import permutations, combinations, product, accumulate from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_upper...
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,026
s650190417
p04030
u761320129
1584358616
Python
Python (3.4.3)
py
Accepted
17
2940
137
S = input() ans = [] for c in S: if c=='B': if ans: ans.pop() else: ans.append(c) 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,027
s422844695
p04030
u227082700
1584358457
Python
Python (3.4.3)
py
Accepted
17
2940
106
ans=[] for i in input(): if i=="B": if len(ans):del 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,028
s651656366
p04030
u955251526
1584337716
Python
Python (3.4.3)
py
Accepted
18
2940
130
s = input() ans = '' for x in s: if x == 'B': if ans: 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,029
s575064764
p04030
u977490411
1584326554
Python
Python (3.4.3)
py
Accepted
18
2940
149
S = input() ans = [] for s in S: if s == '0' or s == '1': ans.append(s) elif len(s) > 0: ans = ans[:-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,030
s452420412
p04030
u223663729
1584311012
Python
Python (3.4.3)
py
Accepted
18
2940
111
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,031
s289004905
p04030
u652569315
1584308651
Python
Python (3.4.3)
py
Accepted
20
3316
199
from collections import deque s=input() ans=deque() for i in s: if i=='1': ans.append('1') if i=='0': ans.append('0') if i=='B': ans.pop() if len(ans)>0 else 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,032
s529413096
p04030
u992910889
1584303266
Python
Python (3.4.3)
py
Accepted
17
3060
481
# import bisect # import copy # import fractions # import math # import numpy as np # from collections import Counter, deque # from itertools import accumulate,permutations, combinations,combinations_with_replacement,product def resolve(): s=str(input()) ans=[] for i in s: if i =='0': 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,033
s796985097
p04030
u490489966
1584291388
Python
Python (3.4.3)
py
Accepted
21
3316
187
#B from collections import deque l=list(input()) ans=[] for i in l: if i=="B": if len(ans)!=0: ans.pop() else: ans+=i for i in ans: 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,034
s051206974
p04030
u061831821
1584229063
Python
Python (3.4.3)
py
Accepted
17
2940
266
string = input() str_list = list(string) display_string="" for char in str_list: if char =="B": if len(display_string) != 0: display_string = display_string[:-1] else : display_string = display_string + char print(display_string)
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,035
s799171939
p04030
u490553751
1584207917
Python
Python (3.4.3)
py
Accepted
20
3316
294
from collections import deque que = deque() s = input() n = len(s) for i in range(n): if s[i] == '0': que.append('0') if s[i] == '1': que.append('1') if s[i] == 'B': if len(que)==0: continue k = que.pop() li = list(que) 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,036
s036427708
p04030
u731603651
1584164093
Python
Python (3.4.3)
py
Accepted
17
2940
108
s=input() res="" for c in list(s): if c=="B": if len(res)>0: res=res[:-1] else: 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,037
s048432774
p04030
u163874353
1584121168
Python
Python (3.4.3)
py
Accepted
17
2940
250
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": 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,038
s182756273
p04030
u678167152
1584079433
Python
Python (3.4.3)
py
Accepted
19
2940
173
S = input() def inp(a,s): if s=='B': if a=='': return '' else: return a[:-1] else: return a+s ans = '' for s in S: ans = inp(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,039
s265737496
p04030
u159975271
1584065428
Python
Python (3.4.3)
py
Accepted
17
2940
177
s = input() S = list(s) t = [] for i in range(len(S)): if S[i] != "B": t.append(S[i]) elif S[i] =="B" and len(t) != 0: t.pop(-1) k = ''.join(t) 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,040
s099104976
p04030
u711626986
1584064784
Python
Python (3.4.3)
py
Accepted
20
3060
280
l=input() list=list(l) list_2=[] length=len(list) for k in range(length): if list[k]=="0": list_2.append("0") elif list[k]=="1": list_2.append("1") else: if len(list_2)==0: continue else: del list_2[-1] mojiretsu="".join(list_2) print(mojiretsu)
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,041
s338044741
p04030
u798818115
1584028690
Python
Python (3.4.3)
py
Accepted
17
2940
181
# coding: utf-8 # Your code here! s=input() ans=[] for item in s: if item=="B": if ans: ans.pop(-1) else: ans.append(item) 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,042
s255117149
p04030
u764401543
1584012760
Python
Python (3.4.3)
py
Accepted
17
2940
224
s = list(input()) s.reverse() b = 0 ans = '' for c in s: if c == 'B': b += 1 else: if b > 0: b -= 1 else: ans += c ans = list(ans) ans.reverse() 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,043
s432997672
p04030
u017719431
1583985419
Python
Python (3.4.3)
py
Accepted
17
3060
245
s = input() def genStr(s): stuck = [] for i in s: if i == "0" or i == "1": stuck.append(i) elif i == "B": if len(stuck) != 0: stuck.pop() else: return None return "".join(stuck) print(genStr(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,044
s462576757
p04030
u066855390
1583985396
Python
Python (3.4.3)
py
Accepted
17
2940
197
S = list(input()) stack = [] for s in S: if s == "B": if stack != []: # if len(stack) > 0: stack.pop() else: stack.append(s) 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,045
s481799984
p04030
u476435125
1583985266
Python
Python (3.4.3)
py
Accepted
17
2940
164
S=input() ans="" for i in range(len(S)): if S[i]=="0" or S[i]=="1": ans+=S[i] 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,046
s642757230
p04030
u066855390
1583985235
Python
Python (3.4.3)
py
Accepted
17
2940
167
S = list(input()) stack = [] for s in S: if s == "B": if len(stack) > 0: stack.pop() else: stack.append(s) 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,047
s562603046
p04030
u051842502
1583975165
Python
Python (3.4.3)
py
Accepted
18
3060
227
s=input() output="" for n in range(0,len(s)): if s[n]=="0": output+="0" elif s[n]=="1": output+="1" elif s[n]=="B": if len(output)>=1: output=output[:len(output)-1] 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,048
s247247081
p04030
u021916304
1583973523
Python
Python (3.4.3)
py
Accepted
17
2940
186
s = input() s = list(s) ans = [] for item in s: if item == '0' or item == '1': ans.append(item) 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,049
s164057724
p04030
u681444474
1583967131
Python
Python (3.4.3)
py
Accepted
17
3060
246
# coding: utf-8 # Your code here! s = list(input()) t = [] for i in range(len(s)): if s[i] == '0': t.append('0') elif s[i] == '1': t.append('1') else: if len(t) != 0: del t[-1] 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,050
s179946521
p04030
u867826040
1583953383
Python
Python (3.4.3)
py
Accepted
17
3060
204
s = list(input()) out = [] for a in s: if a == "1": out.append("1") elif a == "0": out.append("0") elif a == "B": if out == []: pass else: 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,051
s908479925
p04030
u463775490
1583891723
Python
Python (3.4.3)
py
Accepted
18
2940
150
s = input() ans = '' for i in s: if i == '0': ans += '0' elif i == '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,052
s522430372
p04030
u841623074
1583890993
Python
Python (3.4.3)
py
Accepted
18
2940
238
S=input() array=[] for i in range(len(S)): if S[i]=='B': if array==[]: array=[] else: array.pop(-1) else: array.append(S[i]) c="" for i in range(len(array)): c+=array[i] print(c)
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,053
s257099632
p04030
u891518152
1583874842
Python
Python (3.4.3)
py
Accepted
17
3060
164
s = list(input()) S = [] for i in range(len(s)): if s[i]=='B' and len(S)>0: del S[len(S)-1] elif s[i]!='B': S.append(s[i]) print(''.join(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,054
s424358498
p04030
u771538568
1583871985
Python
Python (3.4.3)
py
Accepted
17
3064
145
a=input() li=[] for i in a: if i=="B": if len(li)!=0: del li[-1] else: li.append(i) s="".join(li) 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,055
s205285063
p04030
u970809473
1583851983
Python
Python (3.4.3)
py
Accepted
18
3060
202
s = input() tmp = "" for i in range(len(s)): if s[i] == "1": tmp = tmp + "1" elif s[i] == "0": tmp = tmp + "0" elif s[i] == "B" and tmp =="": pass else: tmp = tmp[:-1] print(tmp)
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,056
s054503200
p04030
u075595666
1583824306
Python
Python (3.4.3)
py
Accepted
18
3060
178
s = input() n = int(len(s)) word = "" for i in range(n): if s[i] == '0': word = word + "0" if s[i] == '1': word = word + "1" if s[i] == "B": word = word[:-1] print(word)
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,057
s379891527
p04030
u767995501
1583819364
Python
Python (3.4.3)
py
Accepted
17
2940
94
t="" for x in input(): if x=="B": t=t[:-1]#:-1で右端削除 else:t+=x 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,058
s146812359
p04030
u767995501
1583819191
Python
Python (3.4.3)
py
Accepted
17
2940
75
t="" for x in input(): if x=="B": t=t[:-1] else:t+=x 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,059
s511441859
p04030
u000123984
1583786789
Python
Python (3.4.3)
py
Accepted
17
3060
167
li = list(input()) ans = "" for i in li: if i == "0": ans = ans + "0" elif i == "1": ans = ans + "1" elif i == "B": 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,060
s003156682
p04030
u568576853
1583784815
Python
Python (3.4.3)
py
Accepted
17
3060
189
S=input() res=[] for i in range(len(S)): if S[i]=="0" : res.append("0") elif S[i]=="1": res.append("1") else: if len(res)>=1: del res[-1] res="".join(res) 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,061
s106200597
p04030
u105302073
1583761528
Python
Python (3.4.3)
py
Accepted
17
2940
155
s = list(input()) ans = [] for i in s: if i == "B": if len(ans) > 0: ans.pop() 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,062
s911320475
p04030
u716660050
1583748792
Python
Python (3.4.3)
py
Accepted
18
3060
214
s=input() e=[] for i in range(len(s)): if s[i]=="1": e.append("1") elif s[i]=="0": e.append("0") else: if not len(e)==0: e.pop(-1) o="" for i in e: o=o+i print(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,063
s926198875
p04030
u775912090
1583704642
Python
Python (3.4.3)
py
Accepted
17
3060
227
s = input() out = "" while len(s) > 0: if s[0:1] == '0': s = s[1:] out += '0' if s[0:1] == '1': s = s[1:] out += '1' if s[0:1] == 'B': s = s[1:] if len(out) > 0: out = out[:-1] print(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,064
s766515136
p04030
u506858457
1583676566
Python
Python (3.4.3)
py
Accepted
18
2940
116
t=[] for x in input(): 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,065
s398832660
p04030
u506858457
1583676518
Python
Python (3.4.3)
py
Accepted
19
3060
68
t="" for x in input(): if x=="B":t=t[:-1] else:t+=x 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,066
s448259303
p04030
u620238824
1583629101
Python
Python (3.4.3)
py
Accepted
17
2940
178
s = input() n = [] for i in s: if i == "B": if len(n) == 0: continue else: del n[-1] else: n.append(i) print(''.join(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,067
s035068232
p04030
u895408600
1583551583
Python
Python (3.4.3)
py
Accepted
18
3060
187
s=input() ans=[] for i in range(len(s)): if s[i]=='1': ans.append('1') if s[i]=='0': ans.append('0') if s[i]=='B': ans = ans[:-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,068
s482841931
p04030
u698919163
1583551437
Python
Python (3.4.3)
py
Accepted
24
3060
203
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.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,069
s679321463
p04030
u269969976
1583549209
Python
Python (3.4.3)
py
Accepted
17
2940
179
# coding: utf-8 s = input().rstrip() stk = [] for i in s: if i == "B": if len(stk) > 0: stk.pop() else: stk.append(i) print("".join(stk))
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,070
s054100686
p04030
u780962115
1583520410
Python
Python (3.4.3)
py
Accepted
17
3060
282
s=input() lists=list(s) ans=[] for i in range(len(s)): if s[i]=="0": ans.append("0") elif s[i]=="1": ans.append("1") elif s[i]=="B": if len(ans)==0: pass else: del ans[-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,071
s851435622
p04030
u566428756
1583517530
Python
Python (3.4.3)
py
Accepted
17
2940
175
S=list(input()) for i in range(10): try: j=S.index('B') except: break if j!=0: del S[j-1:j+1] else: del S[j] print(''.join(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,072
s470147132
p04030
u422272120
1583468993
Python
Python (3.4.3)
py
Accepted
17
3060
169
s = input() e = "" for i in range(len(s)): if s[i] == "0" or s[i] == "1": e += s[i] else: if len(e) != 0: e = e[0:len(e)-1] print (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,073
s134981147
p04030
u458282993
1583434828
Python
Python (2.7.6)
py
Accepted
10
2568
179
import re input1 = raw_input() past = input1 s = input1 while True: s = re.sub('[0-1]B', '', s) if past == s: break past = s s = re.sub('^B*', '', s) 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,074
s982576449
p04030
u763724837
1583434343
Python
Python (3.4.3)
py
Accepted
17
3060
257
if __name__ == '__main__': s = input() ans = [] for c in s: if c == '0': ans.append('0') elif c == '1': ans.append('1') elif c == 'B': del ans[-1:] 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,075
s354046878
p04030
u680851063
1583433430
Python
Python (3.4.3)
py
Accepted
17
2940
90
s=input() x='' for i in s: if i=='B': x=x[:-1] else: x+=i 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,076
s116227634
p04030
u680851063
1583432978
Python
Python (3.4.3)
py
Accepted
17
2940
114
s=input() x='' for i in s: if i=='0' or i=='1': x+=str(i) elif 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,077
s826884479
p04030
u453683890
1583425388
Python
Python (3.4.3)
py
Accepted
17
2940
94
line = input() S = "" for i in line: if i == 'B': S = S[:-1] else: 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,078
s569171171
p04030
u541610817
1583391160
Python
Python (3.4.3)
py
Accepted
17
2940
119
S = input() res = '' for s in S: if s == 'B': res = res[:len(res)-1] else: res += s 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,079
s349056219
p04030
u705007443
1583386257
Python
Python (3.4.3)
py
Accepted
17
2940
219
inp=input() ans=[] for i in range(len(inp)): if inp[i]=='0' or inp[i]=='1': ans.append(inp[i]) else: try: del ans[-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,080