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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s540643756 | p04030 | u004025573 | 1533007732 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 253 | S = list(input())
ans = []
l = -1
for i in S:
if i == '0':
ans.append(i)
l+=1
elif i == '1':
ans.append(i)
l+=1
else:
if l>=0:
del ans[l]
l-=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,206,281 |
s871291714 | p04030 | u065923107 | 1532981462 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 131 | a=input()
b=''
for i in a:
if i=='0':
b+='0'
elif i=='1':
b+='1'
else :
b=b[:len(b)-1]
print(b) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,282 |
s670462220 | p04030 | u599547273 | 1532880370 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 104 | s = input()
text = ""
for s_i in s:
if s_i == "B":
text = text[:-1]
else:
text += s_i
print(text) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,283 |
s526626305 | p04030 | u832039789 | 1532662607 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 78 | s=''
for c in input():
if c=='B':
s = s[:-1]
else:
s += c
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,206,284 |
s080659696 | p04030 | u443569380 | 1532318377 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 208 | S = input()
ans = []
for i in S:
if i == "0":
ans.append("0")
elif i == "1":
ans.append("1")
else:
if len(ans) != 0:
ans.pop()
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,285 |
s387423235 | p04030 | u006657459 | 1532293066 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | S = input()
r = ''
for i in range(len(S)):
if S[i] == 'B':
if len(r) != 0:
r = r[:-1]
else:
r += S[i]
print(r)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,286 |
s529867063 | p04030 | u562935282 | 1532253388 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 128 | 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,206,287 |
s406577940 | p04030 | u099566485 | 1531370842 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 153 | k=input()
a=[]
for i in k:
if i=="B":
if len(a)>0:
del a[-1]
else:
a.append(i)
s=""
for i in a:
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,206,288 |
s287873975 | p04030 | u232852711 | 1531360397 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 154 | 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,206,289 |
s411493116 | p04030 | u215065194 | 1531355475 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | res=''
for char in input():
if char == 'B':
res = res[:len(res)-1]
else:
res = res + char
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,206,290 |
s290450794 | p04030 | u622255286 | 1531328442 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 129 | s = raw_input()
res = ''
for t in s:
if t == '0' or t == '1':
res += t
else:
if res:
res = res[:-1]
print(res)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,291 |
s678663072 | p04030 | u306142032 | 1531259650 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 234 | output = []
def key(c):
global output
if c == '0':
output.append('0')
elif c == '1':
output.append('1')
else:
output = output[:-1]
s = input()
for c in s:
key(c)
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,206,292 |
s962886087 | p04030 | u029315034 | 1531192761 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | s = input()
ans = ""
for v in s:
if v == 'B':
ans = ans[:-1]
elif v == '0':
ans += '0'
else:
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,206,293 |
s100138705 | p04030 | u118605645 | 1531002505 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 251 | S = input()
r = []
for i in range(len(S)):
if S[i] == '0':
r.append('0')
elif S[i] == '1':
r.append('1')
elif S[i] == 'B':
if len(r) > 0:
r.pop(-1)
str_r = ""
for _r in r:
str_r += _r
print(str_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,206,294 |
s216790253 | p04030 | u627417051 | 1530952298 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 188 | s = list(input())
x = len(s)
seq = ""
for i in range(x):
if s[i] == "0":
seq += "0"
elif s[i] == "1":
seq += "1"
else:
if seq == "":
pass
else:
seq = seq[0:-1]
print(seq) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,295 |
s276170468 | p04030 | u050428930 | 1530939094 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 185 | N=list(input())
t=[]
for i in N:
if i=="0":
t.append("0")
elif i=="1":
t.append("1")
else:
if t!=[]:
t.pop(-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,206,296 |
s853215477 | p04030 | u785220618 | 1530917879 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 136 | # -*- coding: utf-8 -*-
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,206,297 |
s219710757 | p04030 | u588341295 | 1530629558 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 388 | # -*- coding: utf-8 -*-
s = input()
def typeStr(ans, str1):
if str1 == "B":
# 文字列が空ではない確認
if ans != "":
# 残っている時のみ削除を行う(最後の1文字以外を切り取る)
ans = ans[0:-1]
else:
ans += str1
return ans
ans = ""
for i in range(len(s)):
ans = typeStr(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,206,298 |
s085496371 | p04030 | u064408584 | 1530615243 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 90 | a=''
for i in input():
if i=='B':
if len(a)!=0:a=a[:-1]
else:a+=i
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,299 |
s309784410 | p04030 | u588341295 | 1530573422 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 378 | # -*- coding: utf-8 -*-
s = input()
ans = ""
for i in range(len(s)):
if s[i] == "0":
ans += "0"
elif s[i] == "1":
ans += "1"
elif s[i] == "B":
# 文字列が空ではない確認
if ans != "":
# 残っている時のみ削除を行う(最後の1文字以外を切り取る)
ans = ans[0:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,300 |
s355939134 | p04030 | u588341295 | 1530572903 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 360 | # -*- coding: utf-8 -*-
s = input()
ans = []
for i in range(len(s)):
if s[i] == "0":
ans.append("0")
elif s[i] == "1":
ans.append("1")
elif s[i] == "B":
# リストが空ではない確認
if ans:
# 文字列が残っている時のみ削除を行う
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,206,301 |
s897337092 | p04030 | u944209426 | 1530500925 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 188 | s=input()
ans=[]
for i in range(len(s)):
if s[i]=='0':
ans.append('0')
elif s[i]=='1':
ans.append('1')
elif s[i]=='B':
ans=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,206,302 |
s814253387 | p04030 | u482969053 | 1530441927 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | s = input()
ans = ''
for s_i in 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,206,303 |
s599127468 | p04030 | u624475441 | 1530320233 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 86 | s=input()
while'B'in s:
s=s[s[0]=='B':].replace('0B','').replace('1B','')
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,304 |
s977784866 | p04030 | u624475441 | 1530317855 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 92 | import re
s = input()
for _ in range(s.count('B')):
s = re.sub('.?B', '', 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,206,305 |
s216429472 | p04030 | u624475441 | 1530316435 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 95 | import re
s = input()
for _ in range(s.count('B')):
s = re.sub('(^|[01])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,206,306 |
s507059525 | p04030 | u624475441 | 1530316235 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 96 | import re
s = input()
for _ in range(s.count('B')):
s = re.sub(r'(^|[01])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,206,307 |
s225762553 | p04030 | u624475441 | 1530315585 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 99 | s=input()
while'B'in s:
s=s.replace('0B','').replace('1B','')
if s[0]=='B':s=s[1:]
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,308 |
s963479545 | p04030 | u552122040 | 1530047796 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 250 | s = list(input())
output_string = []
for i in range(len(s)):
if s[i] == '0':
output_string.append('0')
elif s[i] == '1':
output_string.append('1')
else:
if output_string:
del output_string[-1]
print("".join(output_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,206,309 |
s743504963 | p04030 | u333139319 | 1529795696 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | s=input()
a=""
for i in range(len(s)):
if s[i]=="0":
a=a+"0"
elif s[i]=="1":
a=a+"1"
else:
a=a[0:len(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,206,310 |
s448714717 | p04030 | u108808596 | 1529554184 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 184 | s=raw_input()
buf = []
for c in s:
if c == '0':
buf.append('0')
elif c == '1':
buf.append('1')
elif c == 'B':
if len(buf) > 0:
buf = buf[:-1]
print ''.join(buf) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,311 |
s966440862 | p04030 | u724892495 | 1529527432 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 201 | S = input()[::-1]
res = ""
ruiseki = 0
for s in S:
if s == 'B':
ruiseki += 1
else:
if ruiseki > 0:
ruiseki -= 1
else:
res += s
print(res[::-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,206,312 |
s237548014 | p04030 | u931636178 | 1529168201 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | ans = []
s = list(input())
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,206,313 |
s926471703 | p04030 | u403301154 | 1528788522 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 128 | s=input()
t=""
for i in range(len(s)):
if s[i] == "0":
t+="0"
elif s[i] == "1":
t+="1"
else:
t=t[:-1]
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,314 |
s414183733 | p04030 | u603234915 | 1528741354 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 189 | s =list(input())
a = []
for i in range(len(s)):
if s[i] == 'B':
if a == []:
pass
else:
del a[-1]
else :
a += 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,206,315 |
s912640773 | p04030 | u459283268 | 1528604026 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 125 | s = input()
r = []
for i in s:
if i == 'B' and r:
r.pop()
if i != 'B':
r.append(i)
print(''.join(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,206,316 |
s406642147 | p04030 | u288087195 | 1528509646 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 336 | s = input()
data =[]
for i in range(len(s)):
data.append(s[i])
array = []
for i in range(len(data)):
if data[i] == "0":
array.append("0")
elif data[i] == "1":
array.append("1")
elif (len(array) != 0 and data[i]== "B"):
array.pop(-1)
else:
pass
mojiretu = ''
for x in array:
mojiretu += 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,206,317 |
s529524031 | p04030 | u894440853 | 1528373984 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 96 | a = ''
for i in input():
if i == 'B':
a = a[:-1]
else:
a += i
print(a)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,318 |
s223102338 | p04030 | u026788530 | 1528313767 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 251 | S = input()
#print(S)
ans = []
for str in S:
if str == '0':
ans.append('0')
elif str == '1':
ans.append('1')
else:
if len(ans) > 0:
ans.pop()
for a in ans:
print(a,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,206,319 |
s179159275 | p04030 | u136395536 | 1528298717 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 276 | s = input()
final = ""
length = len(s)
for i in range(length):
if s[i] == "0":
final = final + "0"
elif s[i] == "1":
final = final + "1"
else:
if len(final)!=0:
last = len(final)
final = final[0:last-1]
print(final) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,320 |
s255991630 | p04030 | u136090046 | 1528250924 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 181 | s = input()
res = ""
for i in s:
if i == "0":
res += "0"
elif i == "1":
res += "1"
else:
if len(res) != 0:
res = res[:-1]
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,321 |
s620186332 | p04030 | u399280934 | 1527819105 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 86 | a=''
for i in input():
if i=='B':
a=a[:-1]
else:
a+=i
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,322 |
s636540508 | p04030 | u112523623 | 1527697810 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 231 | if __name__ == '__main__':
s = input()
result = []
for c in s:
if c == '0' or c == '1':
result.append(c)
elif c == 'B' and len(result) > 0:
result.pop()
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,206,323 |
s311070690 | p04030 | u846150137 | 1526993198 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 130 | a=list(input())
x=[]
for ai in a:
if x !=[] and ai=="B":
x.pop()
elif ai in ["0","1"]:
x.append(ai)
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,206,324 |
s946604146 | p04030 | u766407523 | 1526985303 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 149 | ans = ''
for i in input():
if i == 'B':
if ans == '':
continue
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,206,325 |
s560154532 | p04030 | u761320129 | 1526985201 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | 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,206,326 |
s799145436 | p04030 | u047535298 | 1526681809 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | ans = ""
for c in input():
if(c=="B"):
if(ans):
ans = ans[:-1]
else:
ans += c
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,327 |
s320003865 | p04030 | u214617707 | 1526616780 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 155 | s = input()
t = ""
for i in range(len(s)):
if s[i] != "B":
t += s[i]
else:
if len(t) != 0:
t = t[:len(t) - 1]
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,328 |
s987869548 | p04030 | u354638986 | 1526591431 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 257 | def main():
s = input()
d = ""
for i in s:
if i == "0":
d += "0"
elif i == "1":
d += "1"
else:
d = d[:-1]
print(d)
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,206,329 |
s864170740 | p04030 | u675044240 | 1525787262 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 205 | s = input()
s = list(s)
ans = []
for i in s:
if i == "0" or i == "1":
ans.append(i)
else:
try:
del ans[-1]
except:
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,206,330 |
s575916305 | p04030 | u985076807 | 1525739893 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 203 | # coding: utf-8
ANS = []
for ch in list(input()):
if ch == '0':
ANS.append(ch)
elif ch =='1':
ANS.append(ch)
else:
if 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,206,331 |
s436628928 | p04030 | u634208461 | 1525359469 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 174 | S = input()
Ans_list = []
Ans = ''
for i in S:
if i != 'B':
Ans_list.append(i)
elif i == 'B' and Ans_list != []:
Ans_list.pop()
for i in Ans_list:
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,206,332 |
s164593723 | p04030 | u118019047 | 1525195865 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 235 | s = list(input())
ans = list()
for i in range(len(s)):
if s[i] == "B":
if len(ans) != 0:
ans.pop()
else:
continue
else:
ans.append(s[i])
for word in ans:
print(word ,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,206,333 |
s871477036 | p04030 | u327248573 | 1525055478 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 127 | import re
s = input()
for i in range(s.count('B')):
s = re.sub(r'^B', '', s)
s = re.sub(r'(0|1)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,206,334 |
s928571504 | p04030 | u573970531 | 1524630488 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | in1 = input()
r = ""
for c in in1:
if c == "0":
r+="0"
elif c == "1":
r+="1"
else:
r = r[:-1]
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,206,335 |
s933862262 | p04030 | u520158330 | 1524591060 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 208 | sl = input()
output = []
for s in sl:
if s == "B":
output = output[:-1]
elif s == "0":
output.append("0")
elif s == "1":
output.append("1")
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,206,336 |
s301637328 | p04030 | u200239931 | 1524512000 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 727 | import math
import sys
def getinputdata():
# 配列初期化
array_result = []
data = input()
array_result.append(data.split(" "))
flg = 1
try:
while flg:
data = input()
array_temp = []
if(data != ""):
array_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,206,337 |
s454728843 | p04030 | u040380068 | 1524507078 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 137 | s = raw_input()
ans = ""
for i in range(0, len(s)):
if s[i] == "B":
if ans != "": ans = ans[:-1]
else:
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,206,338 |
s030852046 | p04030 | u826263061 | 1524433453 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 160 | s = input()
n=len(s)
ans=""
for c in s:
if c=="0":
ans += "0"
elif c=="1":
ans +="1"
elif c=="B":
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,206,339 |
s316796885 | p04030 | u226108478 | 1523897951 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 328 | # -*- coding: utf-8 -*-
# AtCoder Beginner Contest
# Problem B
if __name__ == '__main__':
s = input()
result = ''
for si in s:
if si == '0' or si == '1':
result += si
elif si == 'B':
if len(result) != 0:
result = result[:len(result) - 1]
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,206,340 |
s962774414 | p04030 | u856232850 | 1523840401 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | a = input()
b =''
for i in a:
if i == '0':
b += '0'
elif i == '1':
b += '1'
else:
b = b[:-1]
print(b) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,341 |
s313767659 | p04030 | u218843509 | 1523691910 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 192 | s_list = list(input())
ans_list = []
for s in s_list:
if s == "1" or s == "0":
ans_list.append(s)
elif ans_list != []:
ans_list.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,206,342 |
s180267040 | p04030 | u281303342 | 1523670156 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 119 | S = input()
T = ""
for w in S:
if w == "B" and T != "":
T=T[:-1]
elif w != "B":
T += w
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,206,343 |
s040103816 | p04030 | u766407523 | 1523394632 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 174 | ans = ''
for i in input():
if i == 'B':
if ans == '':
continue
else:
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,206,344 |
s107636386 | p04030 | u978494963 | 1523136941 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | inst = input()
buf = []
for s in inst:
if s == "B":
if len(buf) != 0:
del buf[-1]
else:
buf.append(s)
print("".join(buf)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,345 |
s536693392 | p04030 | u058580040 | 1522667998 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 303 | import sys
import io
def run(input: io.TextIOBase, output: io.TextIOBase):
x = input.readline().strip()
r = ""
for i in x:
if i == "B":
r = r[0:-1]
else:
r += i
output.write(r + '\n')
if __name__ == '__main__':
run(sys.stdin, sys.stdout)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,346 |
s153913760 | p04030 | u027622859 | 1522517226 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 182 | s = list(input())
S = []
for a in s:
if a == "B":
try:
S.pop()
except IndexError:
continue
else:
S.append(a)
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,206,347 |
s435017371 | p04030 | u667949809 | 1522364467 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 183 | s = list(input())
S = ""
for i in range(len(s)):
if s[i] == "B":
if S == "":
continue
else:
S = S[:-1]
else:
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,206,348 |
s821749371 | p04030 | u562016607 | 1522197181 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 92 | t=""
s=input()
for i in s:
if i=="B":
t=t[:-1]
else:
t=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,206,349 |
s098602578 | p04030 | u729707098 | 1521937369 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | s = input()
answer = ""
for i in s:
if i == "B" and answer == "": pass
elif i == "B" and answer != "": answer = answer[:len(answer)-1]
else: answer += i
print(answer) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,350 |
s462960643 | p04030 | u158566391 | 1521827985 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 97 | a=input()
b=''
for i in range(len(a)):
if a[i]=='B':
b=b[0:len(b)-1]
else:
b+=a[i]
print(b) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,351 |
s084359723 | p04030 | u553348533 | 1521704740 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 246 | S = [str(i) for i in input()]
stuckS = []
for i in range(len(S)):
if S[i] == "B":
if len(stuckS) == 0:
continue
else:
stuckS.pop()
else:
stuckS.append(S[i])
ans = "".join(stuckS)
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,206,352 |
s342113418 | p04030 | u875478816 | 1521496321 | Python | Python (3.4.3) | py | Accepted | 19 | 3064 | 273 | S=input()
word="A"
word=word[:-1]
num=len(S)
for i in range(num):
if S[i]=="0":
word+=str(0)
elif S[i]=="1":
word+=str(1)
else:
if len(word)!=0:
word=word[:-1]
else:
word=word
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,206,353 |
s806042572 | p04030 | u478462004 | 1521391696 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 162 | s = list(str(input()))
ans = []
for i in s:
if i != "B":
ans.append(i)
else:
if len(ans) >= 1:
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,206,354 |
s335284301 | p04030 | u976256337 | 1521386021 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | a = input()
ret = ""
cnt = 0
for i in a:
if i == "B":
ret = ret[:-1:]
else:
ret += 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,206,355 |
s626356159 | p04030 | u773981351 | 1521244030 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 158 | keystrokes = input()
word = []
for k in keystrokes:
if k == '0' or k == '1':
word.append(k)
elif word:
word.pop()
print(''.join(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,206,356 |
s455367147 | p04030 | u653005308 | 1521167250 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | string=input()
ans=""
for x in string:
if x!="B":
ans+=x
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,206,357 |
s902690422 | p04030 | u941884460 | 1520953601 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 219 | s = input()
text = []
for i in range(len(s)):
if s[i] == '0':
text.append('0')
elif s[i] =='1':
text.append('1')
else:
if len(text) > 0:
text.pop(len(text)-1)
result = ''.join(text)
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,206,358 |
s656987130 | p04030 | u632369368 | 1520753417 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | S = list(input())
L = []
for i, ch in enumerate(S):
if ch != 'B':
L.append(ch)
elif len(L) > 0:
L = 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,206,359 |
s814180320 | p04030 | u231282396 | 1520554495 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 294 | s = input()
slist = list(s)
rst = []
for i in range(0,len(s)):
if slist[i] == '0':
rst[len(rst):] = slist[i]
elif slist[i] == '1':
rst[len(rst):] = slist[i]
elif slist[i]== 'B':
if len(rst) == 0:
rst == []
else:
rst[len(rst)-1:len(rst)] = ''
jd = "".join(rst)
print(jd) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,360 |
s027049864 | p04030 | u391475811 | 1519859477 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 185 | 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:
ans.pop()
ans=''.join(ans)
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,361 |
s505070386 | p04030 | u597436499 | 1519671822 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 239 | inp = list(input())
s = []
for i in inp:
if i == "0":
s.append(i)
if i == "1":
s.append(i)
if i == "B":
if s == []:
continue
s.pop(-1)
n = ','.join(s)
n = n.replace(",", "")
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,206,362 |
s842756455 | p04030 | u019584841 | 1519489257 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 102 | l = input()
s = ""
for i in l:
if i == "B":
s = s[:-1]
else:
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,206,363 |
s998051244 | p04030 | u030726788 | 1519366213 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 194 | import sys
S=list(input())
outp=""
for i in S:
if(i=="0"):
outp+="0"
elif(i=="1"):
outp+="1"
else:
if(len(outp)!=0):
outp = outp[0:-1]
print(outp) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,364 |
s637579003 | p04030 | u601913978 | 1519283378 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 146 | ans_str = ''
for i in list(input()):
if i == 'B':
ans_str = list(ans_str)[:-1]
else:
ans_str += i
print(''.join(ans_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,206,365 |
s491351283 | p04030 | u319612498 | 1519260277 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 239 | ans = []
for c in list(input()):
if c == 'B':
if len(ans) == 0: continue
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,206,366 |
s961041853 | p04030 | u586577600 | 1519246979 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | ans = []
for c in list(input()):
if c == 'B':
if len(ans) == 0: continue
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,206,367 |
s056542085 | p04030 | u875361824 | 1518429987 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 203 | def main():
s = input()
ans = ""
for c in s:
if c in ("0", "1"):
ans += c
else:
ans = ans[:-1]
print(ans)
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,206,368 |
s587134797 | p04030 | u103539599 | 1518234383 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | s=list(input())
T=[]
for i in s:
if i=="B" and T!=[]:
T.pop()
elif i!="B":
T.append(i)
Ts=""
for i in T:
Ts+=i
print(Ts) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,369 |
s760231569 | p04030 | u764600134 | 1517705971 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 463 | # -*- coding: utf-8 -*-
"""
https://beta.atcoder.jp/contests/abc043/tasks/abc043_b
"""
import sys
from sys import stdin
input = stdin.readline
def solve(s):
ans = []
for c in s:
if c == 'B':
if len(ans) > 0:
ans.pop()
else:
ans.append(c)
return 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,206,370 |
s397020694 | p04030 | u711985352 | 1517680184 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 177 | s = input()
ans = ""
for i in s:
if(i == '0'):
ans += '0'
elif(i == '1'):
ans += '1'
elif(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,206,371 |
s520353050 | p04030 | u853586331 | 1517600636 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 144 | S=input()
ans=''
for c in S:
if c=='0':
ans+='0'
elif c=='1':
ans+='1'
else:
if ans=='':
continue
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,206,372 |
s629102253 | p04030 | u952708174 | 1517115381 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 191 | s = input().strip()
ans = ''
for c in s:
if c == '0':
ans+='0'
elif c == '1':
ans+='1'
elif c == 'B':
if ans=='':
continue
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,206,373 |
s991894113 | p04030 | u667024514 | 1517008945 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 195 | n = list(input())
ans = []
for i in range(0,len(n)):
if n[i] == "0":
ans.append("0")
elif n[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,206,374 |
s951004480 | p04030 | u743272507 | 1516742788 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 102 | s = input()
t = ""
for i in s:
if i == "B":
t = t[:-1]
else:
t = 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,206,375 |
s847070203 | p04030 | u202877219 | 1516599173 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | s = input()
z = ""
for i in range(len(s)):
if s[i] == "0":
z += "0"
elif s[i] == "1":
z+= "1"
elif s[i] == "B":
z = z[:-1]
print (z)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,376 |
s015519971 | p04030 | u811528179 | 1516511872 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 108 | 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,206,377 |
s424708991 | p04030 | u257974487 | 1516317917 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 237 | N = input()
ans = str()
for i in range(len(N)):
if N[i] == "0":
ans += "0"
elif N[i] == "1":
ans += "1"
else:
if len(ans) == 0:
continue
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,206,378 |
s531568767 | p04030 | u181037878 | 1515907862 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 178 | s = input()
lst = []
for i in range(len(s)):
if s[i] == "B":
if lst:
del lst[len(lst)-1]
else:
lst.append(s[i])
ans = "".join(lst)
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,206,379 |
s395940158 | p04030 | u350179603 | 1515873208 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 188 | s = list(input())
a = []
for i in s:
if i == "0" or i =="1":
a.append(i)
elif i =="B" and a !=[]:
a.pop(-1)
elif i =="B" and a ==[]:
continue
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,206,380 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.