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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s630575832 | p04030 | u591779169 | 1558857474 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 199 | s = input()
ans =[]
for i in range(len(s)):
if s[i] == '0':
ans.append('0')
elif s[i] == '1':
ans.append('1')
elif len(ans) != 0:
ans.pop(-1)
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,881 |
s454893469 | p04030 | u564060397 | 1558816950 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 164 | s=input()
ans=""
for i in s:
if i=="0":
ans+="0"
if i=="1":
ans+="1"
if i=="B":
if ans!="":
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,882 |
s216757891 | p04030 | u167681750 | 1558753237 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 181 | s = input()
ans = ""
for i in s:
if i == "0":
ans += "0"
if i == "1":
ans += "1"
if i == "B":
if ans != "":
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,883 |
s367832392 | p04030 | u765590009 | 1558727112 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | a = list(input())
answer = []
for char in a :
if char == "B" :
if len(answer) != 0 :
answer.pop(-1)
else :
answer.append(char)
print(''.join(answer)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,884 |
s908464383 | p04030 | u865741247 | 1558683532 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 189 | import itertools
S = input()
S = list(S)
ans = []
for s in S:
if s == "B":
if len(ans) > 0:
ans.pop(len(ans) -1 )
else:
ans.append(s)
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,885 |
s158831208 | p04030 | u802772880 | 1558671320 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | 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':
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,886 |
s592173809 | p04030 | u524747996 | 1558644377 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | s = input()
ans = ''
for i in s:
if i == 'B':
ans = ans[:-1]
else:
ans += i
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,887 |
s826101328 | p04030 | u008489560 | 1558633029 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | ret = []
for s in input():
if s == '0' or s == '1':
ret.append(s)
elif len(ret) > 0:
ret.pop()
print(''.join(ret)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,888 |
s754114411 | p04030 | u381739460 | 1558623862 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 231 | a = str(input())
s = len(a)
x = ""
while True:
if s == 0:
break
elif a[0] == "0":
x += "0"
elif a[0] == "1":
x += "1"
elif a[0] == "B":
x = x[:-1]
s = s - 1
a = a[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,889 |
s235719440 | p04030 | u919633157 | 1558558740 | Python | Python (3.4.3) | py | Accepted | 22 | 2940 | 119 | s=list(input())
ans=[]
for i in s:
if i=='B' :
if ans: 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,890 |
s662890780 | p04030 | u941438707 | 1558489511 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | s=str(input())
for i in range(10):
s=s.replace("0B","")
s=s.replace("1B","")
s=s.replace("B","")
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,891 |
s855715132 | p04030 | u804085889 | 1558390734 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 145 | S=input()
stack=[]
for s in S:
if s!="B":
stack.append(s)
else:
try:stack.pop()
except:pass
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,892 |
s968507648 | p04030 | u570545890 | 1558381490 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 191 | s = input()
a = [c for c in s]
output = []
for i in a:
if (i == '0') or (i == '1'):
output.append(i)
elif (i == 'B') and (output != []):
output.pop()
print(''.join(output)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,893 |
s033402809 | p04030 | u652081898 | 1558312904 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | s = input()
ans = ""
for i in s:
if i == "B" and ans != "":
ans = ans[:-1]
if i != "B":
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,894 |
s635886275 | p04030 | u391731808 | 1558195050 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 72 | S=input()
a=""
for s in S:
if s!="B":a+=s
else:a=a[:-1]
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,895 |
s868148411 | p04030 | u760794812 | 1558190740 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 149 | S = input()
Answer = ''
for i in range(len(S)):
if S[i] != 'B':
Answer += S[i]
elif Answer != '':
Answer = Answer[:-1]
print(Answer) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,896 |
s297982449 | p04030 | u042716570 | 1558069042 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 180 | s = input()
d = []
for i in range(len(s)):
if s[i] == '0' or s[i] == '1':
d.append(s[i])
elif s[i] == 'B':
if d != []:
d.pop()
print(''.join(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,897 |
s323400410 | p04030 | u923712635 | 1557976601 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 161 | s = input()
buffer = ''
for i in s:
if(i=='0'):
buffer+='0'
elif(i=='1'):
buffer+='1'
else:
buffer=buffer[:-1]
print(buffer)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,898 |
s472964700 | p04030 | u315703650 | 1557928372 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 172 | s = input()
a = []
for i in range(len(s)):
if s[i]=="0" or s[i]=="1":
a.append(s[i])
elif s[i]=="B":
if a!=[]:
a.pop()
print("".join(a))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,899 |
s171094247 | p04030 | u903948194 | 1557891395 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 205 | ss = list(input())
screen = []
for s in ss:
if s == 'B':
if len(screen) == 0:
pass
else:
screen.pop()
else:
screen.append(s)
print(''.join(screen)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,900 |
s222556690 | p04030 | u532966492 | 1557853109 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 142 | S=input()
ans=[]
for i in range(len(S)):
if S[i] in ["0","1"]:
ans.append(S[i])
elif len(ans) > 0:
ans.pop(-1)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,901 |
s000343328 | p04030 | u379959788 | 1557799402 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 136 | #B問題
s = input()
ans = ""
for k in s:
if k == 'B':
ans = ans[:-1]
else:
ans += k
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,902 |
s575372806 | p04030 | u504562455 | 1557772694 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | s = input()
display = []
for key in s:
if key == "B":
if display != []:
del display[-1]
else:
display.append(key)
print("".join(display)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,903 |
s926077838 | p04030 | u507116804 | 1557714132 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 82 | s=input()
k=""
for i in s:
if i!="B":
k += i
else:
k=k[:-1]
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,904 |
s552678299 | p04030 | u581187895 | 1557685759 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 189 | s = input()
s_out = ""
s = s[1:] if s[0] == "B" else s
for c in s:
if c == "B":
s_out = s_out[:-1]
elif c == "0":
s_out += "0"
elif c == "1":
s_out += "1"
print(s_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,905 |
s033873334 | p04030 | u565438278 | 1557592473 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 315 | temp = ""
in_keys = input().rstrip()
while(True):
index = in_keys.find("B")
if index == -1:
break
elif index == 0:
temp = in_keys[1:]
else:
temp = in_keys[:index-1] + in_keys[index+1:]
#print(in_keys[:index-1],in_keys[index+1:])
in_keys = temp
print(in_keys) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,906 |
s586261754 | p04030 | u993622994 | 1557526078 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | s = input()
ans = ''
for i in s:
if i != 'B':
ans += i
elif i == '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,205,907 |
s709340119 | p04030 | u808427016 | 1557456920 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | S = input()
result = ""
for c in S:
if c == "0" or c == "1":
result += c
elif c == "B" and result != "":
result = result[:-1]
print(result) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,908 |
s535440777 | p04030 | u278886389 | 1557409686 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 153 | S = list(input())
l = 0
o = ['']*10
for s in S:
if s == 'B':
l = max(0,l-1)
else:
o[l] = s
l += 1
print(''.join(o[0: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,909 |
s483535743 | p04030 | u172386990 | 1557373547 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 179 | s = input()
editer = ''
for character in s:
if character != 'B':
editer += character
elif character == 'B' and editer:
editer = editer[:-1]
print(editer) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,910 |
s690576181 | p04030 | u041196979 | 1557284376 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 129 | s = input()
r = ""
for t in s:
if t == "B":
if len(r) != 0:
r = r[:-1]
else:
r += t
print(r)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,911 |
s788086579 | p04030 | u150641538 | 1557257677 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 133 | s=input()
x=[]
for a in s:
if a=='B':
if len(x)>0:
x = x[:-1]
else:
x.append(a)
print(''.join(x)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,912 |
s079535226 | p04030 | u064246852 | 1557212907 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 142 | s=input()
t=""
for c in s:
if c == "0":
t += "0"
elif c == "1":
t += "1"
elif t != "":
t = t[:-1]
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,913 |
s693642380 | p04030 | u039360403 | 1557205408 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 172 | s=input()
for i in s:
if i == 'B'and s.index(i) == 0:
s=s[1:]
elif i == 'B'and s.index(i) !=0 :
s=s[:s.index(i)-1]+s[s.index(i)+1:]
print(s)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,914 |
s508998300 | p04030 | u246820565 | 1557194779 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 141 | s = list(input())
ans = ''
for i in s:
if i == 'B' and len(ans) > 0:
ans = ans[:-1]
elif i == '0' or i == '1':
ans = ans + i
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,915 |
s632932422 | p04030 | u806855121 | 1557176340 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 148 | s = input()
ans = []
for c in s:
if c != 'B':
ans.append(c)
else:
if len(ans) > 0:
ans.pop()
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,916 |
s242459529 | p04030 | u300637346 | 1557160836 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | s=input()
result=''
for i in s:
if i != 'B':
result += i
else:
result = result[:-1]
print(result)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,917 |
s659756971 | p04030 | u077291787 | 1557138496 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 185 | # ABC043B - バイナリハックイージー / Unhappy Hacking (ABC Edit)
s = input()
ans = ""
for i in s:
if i != "B":
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,918 |
s893303338 | p04030 | u799000757 | 1557129371 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 189 | s=list(input())
out=[]
for i in range(len(s)):
if s[i]=="1":
out.append(s[i])
if s[i]=="0":
out.append(s[i])
if len(out)!=0 and s[i]=="B":
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,919 |
s128890523 | p04030 | u875347753 | 1557116419 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | s = input()
w = ""
for i in s:
if i == "0":
w += "0"
elif i == "1":
w += "1"
else:
w = w[:-1]
print(w) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,920 |
s986368619 | p04030 | u977193988 | 1557115164 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 127 | s=input()
W=''
for i in s:
if i=='0':
W += '0'
elif i=='1':
W+='1'
else:
W=W[:-1]
print(W) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,921 |
s667749903 | p04030 | u209918867 | 1557103682 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 156 | s=input()
n=len(s)
d=[]
for i in range(n):
if'B'==s[i]:
d.append(d[-1][:-1]if i>0else '')
else:
d.append(d[-1]+s[i]if i>0else s[i])
print(d[-1]) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,922 |
s398609481 | p04030 | u957872856 | 1557033195 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | a = input()
w = ""
for i in a:
if i == "0":
w += "0"
elif i == "1":
w += "1"
else:
w = w[:-1]
print(w) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,923 |
s547286100 | p04030 | u131666536 | 1556998463 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 217 | # -*- coding: utf-8 -*-
s = list(input())
strng = ''
for i in s:
if i == '0':
strng += '0'
elif i == '1':
strng += '1'
else:
if strng:
strng = strng[:-1]
print(strng) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,924 |
s723609021 | p04030 | u167751176 | 1556985003 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | def main():
s = input()
ans = ""
for c in s:
if c == "B" and ans:
ans = ans[:-1]
elif c != "B":
ans += c
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,205,925 |
s162424793 | p04030 | u059262067 | 1556939907 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | x = input()
for i in range(11):
x=x.replace('1B', '')
x=x.replace('0B', '')
x=x.replace('B', '')
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,926 |
s772019143 | p04030 | u732870425 | 1556930778 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 148 | s = list(input())
ans = ""
for x in s:
if x == 'B':
if len(ans) != 0:
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,927 |
s842566729 | p04030 | u734548018 | 1556920444 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 |
s = str(input())
ret = ''
for c in s:
if c=='B':
if ret!='':
ret = ret[:-1]
else:
ret += c
print(ret) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,928 |
s442233200 | p04030 | u491656579 | 1556908994 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 162 | import sys
from collections import Counter
s = input()
ans = ''
for i in s:
if i == 'B':
ans = ans[:-1]
else:
ans = ans + i
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,929 |
s098479212 | p04030 | u220345792 | 1556892988 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 99 | 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,930 |
s260360299 | p04030 | u728566015 | 1556855398 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 196 | s = str(input())
n = len(s)
editer = []
for i in range(n):
if s[i] != "B":
editer.append(s[i])
else:
if len(editer) != 0:
editer.pop(-1)
print("".join(editer)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,931 |
s123997527 | p04030 | u592248346 | 1556837582 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 134 | s = list(input())
a = []
for i in s:
if i!="B":
a.append(i)
if i=="B" and len(a)>0:
a.pop(-1)
print(*a,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,932 |
s058026301 | p04030 | u120691615 | 1556768241 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | S = input()
ans = ""
for s in S:
if s in "01":
ans += s
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,933 |
s358255870 | p04030 | u651277159 | 1556750351 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | S = input()
disp = []
for s in S:
if s == "B":
if len(disp) > 0:
disp.pop()
continue
disp.append(s)
print("".join(disp)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,934 |
s344317741 | p04030 | u576434377 | 1556664573 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 156 | S = input()
res = []
for s in S:
if s == "B":
if len(res) > 0:
res = res[:-1]
else:
res.append(s)
print(''.join(res))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,935 |
s961542125 | p04030 | u382431597 | 1556664251 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 198 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "0":
ans = ans + "0"
elif s[i] == "1":
ans = ans + "1"
elif s[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,936 |
s370317040 | p04030 | u017271745 | 1556653151 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | s = input()
pre = []
for i in s:
if i == '0' or i == '1':
pre.append(i)
else:
if pre != []:
del pre[-1]
ans = ''
for i in pre:
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,937 |
s883639157 | p04030 | u589381719 | 1556652883 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 154 | s = input()
stack =[]
for i in s:
if i == "B":
if stack!=[]:stack.pop()
else:
stack.append(i)
result="".join(stack)
print(result) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,938 |
s897358706 | p04030 | u949414593 | 1556651398 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 183 | s=input()
from collections import deque
stack=deque([])
for c in s:
if c == 'B':
if stack:
stack.pop()
else:
stack.append(c)
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,939 |
s135423559 | p04030 | u592248346 | 1556648952 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | s = list(input())
ans = []
for i in s:
if i!="B":
ans.append(i)
elif len(ans)!=0:
ans.pop(-1)
print(*ans,sep="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,940 |
s441146845 | p04030 | u565149926 | 1556633895 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | s = ''
for i in input():
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,941 |
s229472014 | p04030 | u565149926 | 1556633781 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | s = []
for i in input():
if i == 'B':
if len(s):
s.pop(-1)
else:
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,942 |
s536760048 | p04030 | u731368968 | 1556631082 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 158 | n=''
for c in input():
if c == '0':
n += '0'
if c == '1':
n += '1'
if c == 'B':
if len(n)>0:
n=n[:-1]
print(n) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,943 |
s486036272 | p04030 | u767664985 | 1556582118 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 167 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "0":
ans += "0"
elif s[i] == "1":
ans += "1"
elif ans == "":
pass
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,944 |
s246570571 | p04030 | u442030035 | 1556512532 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 143 | s = input()
ans = []
for i in s:
if i != 'B':
ans.append(i)
else:
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,205,945 |
s081888011 | p04030 | u655834330 | 1556505032 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 303 |
def read_input():
s = input().strip()
return s
def submit():
s = read_input()
result = []
for c in s:
if c == 'B':
result = result[:-1]
else:
result.append(c)
t = ''.join(result)
print(t)
if __name__ == '__main__':
submit()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,946 |
s977849185 | p04030 | u733337827 | 1556397064 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | s = input()
ans = s
while 'B' in ans:
ans = ans.lstrip('B').replace('0B', '').replace('1B', '')
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,947 |
s422568584 | p04030 | u591779169 | 1556378127 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 199 | s = input()
ans =[]
for i in range(len(s)):
if s[i] == '0':
ans.append('0')
elif s[i] == '1':
ans.append('1')
elif len(ans) != 0:
ans.pop(-1)
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,948 |
s251907574 | p04030 | u716043626 | 1556312102 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 227 | 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(-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,949 |
s046624040 | p04030 | u141642872 | 1556262196 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | s = input()
t = ""
for i in range(len(s)):
if s[i] == "B":
t = t[:len(t)-1]
else:
t += s[i]
print(t)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,950 |
s581261167 | p04030 | u609738635 | 1556140348 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 286 | # -*- coding: utf-8 -*-
def solve(S):
A = []
for i in range(len(S)):
if(S[i]=="0" or S[i]=="1"):
A.append(S[i])
elif(len(A)>0 and S[i]=="B"):
A.pop()
print("".join(A))
if __name__ == '__main__':
S = input()
solve(S) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,951 |
s091940050 | p04030 | u436982376 | 1556134090 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 280 | s=input()
output=[]
for i in range(len(s)):
if s[i]=='0':
output.append('0')
elif s[i]=='1':
output.append('1')
elif s[i]=='B':
if len(output)!=0:
del output[len(output)-1]
for i in range(len(output)):
print(output[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,952 |
s784641235 | p04030 | u619458041 | 1556114901 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 347 | import sys
def main():
input = sys.stdin.readline
S = str(input().strip())
ans = []
for s in S:
if s == '0':
ans.append('0')
elif s == '1':
ans.append('1')
else:
if len(ans) > 0:
ans.pop()
print(*ans, sep='')
if __name__... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,953 |
s206476313 | p04030 | u222138979 | 1555957954 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | n = input()
s = ''
for each in n:
if each == '0' or each == '1':
s += each
else:
s = s[:-1]
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,954 |
s692797946 | p04030 | u848678027 | 1555733373 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 280 | from sys import stdin
input=stdin.readline().rstrip()
output_list=[]
for i in range(len(input)):
if input[i]!="B":
output_list.append(input[i])
else:
if len(output_list)!=0:
output_list.pop(-1)
#print(output_list)
output="".join(output_list)
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,955 |
s752769722 | p04030 | u055941944 | 1555636691 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 190 | # -*- coding utf-8 -*-
s=input()
ans=""
for i in range(len(s)):
if s[i]=="B":
ans=ans[:-1]
elif s[i]=="1":
ans+="1"
elif s[i]=="0":
ans+="0"
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,956 |
s803927024 | p04030 | u710789518 | 1555615225 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 121 | s = input()
o = []
for i in s:
if i == 'B':
if len(o) > 0:
o.pop()
else:
o.append(i)
print(''.join(o))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,957 |
s127259547 | p04030 | u185896732 | 1555594656 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 68 | s=input()
a=""
for i in s:
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,205,958 |
s323870863 | p04030 | u864900001 | 1555554734 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | #43
s = input()
while "0B" in s or "1B" in s:
s = s.replace("0B","").replace("1B","")
s = s.replace("B","")
print(s)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,959 |
s228914800 | p04030 | u549497563 | 1555465358 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 199 | s = input()
s = list(s)
res = []
for i in s:
if i=="B":
if res != []:
res.pop(len(res)-1)
elif i=="1":
res += "1"
else:
res += "0"
print("".join(res))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,960 |
s273595732 | p04030 | u969190727 | 1555461121 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | s=input()
ans=[]
for i in range(len(s)):
if s[i]=="B" and len(ans)!=0:
ans.pop()
elif s[i]!="B":
ans.append(s[i])
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,961 |
s876004316 | p04030 | u941753895 | 1555454981 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 197 | # 入力
s=input()
a=''
for x in s:
if x=='0':
a+='0'
elif x=='1':
a+='1'
else:
# 文字列が空でない場合、末尾を削除
if a!='':
a=a[:-1]
# 出力
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,962 |
s114193098 | p04030 | u885899351 | 1555447080 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 82 | 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,963 |
s509077973 | p04030 | u163320134 | 1555400180 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 158 | s=input()
ans=''
for i in range(len(s)):
if s[i]=='0':
ans+='0'
elif s[i]=='1':
ans+='1'
else:
if len(ans)!=0:
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,964 |
s151154383 | p04030 | u149752754 | 1555341524 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 233 | c = list(input())
ans = []
for i in range(len(c)):
if c[i] == '0':
ans.append('0')
elif c[i] == '1':
ans.append('1')
elif len(ans) != 0:
del ans[-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,965 |
s832560477 | p04030 | u145889196 | 1555341283 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 221 | 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 len(ans)!=0:
del ans[-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,966 |
s114755597 | p04030 | u457423258 | 1555257248 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 156 | s = input()
n= len(s)
a=[]
for i in range(n):
if s[i]!='B':
a.append(s[i])
else:
if a!=[]:
del a[-1]
print(''.join(a))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,967 |
s101189351 | p04030 | u803647747 | 1555211546 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 131 | S=input()
new_S=str()
for ii in list(S):
if ii=='B':
new_S=new_S[:-1]
else:
new_S+=ii
print(new_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,968 |
s284595337 | p04030 | u143509139 | 1555208069 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | s = input()
ans = ''
for c in s:
if c == 'B':
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,205,969 |
s570616408 | p04030 | u556016145 | 1555184141 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | x = input()
s = []
for i in x:
if i == 'B':
if len(s) == 0:
continue
del s[-1]
else:
s.append(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,970 |
s303282895 | p04030 | u363438602 | 1555110924 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 279 | s=input()
s=list(s)
l=[]
ls=len(s)
for i in range (ls):
if s[i]=='1':
l.append(1)
elif s[i]=='0':
l.append(0)
else:
if len(l)==0:
l=l
else:
l.pop()
ans=""
for i in range(len(l)):
ans=ans+str(l[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,971 |
s459555744 | p04030 | u956866689 | 1555040906 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 143 | # -*- coding:utf-8 -*-
s = list(input())
str = ""
for x in s:
if x != "B":
str += x
else:
str = str[:-1]
print(str)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,972 |
s225545679 | p04030 | u055941944 | 1555034489 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 171 | # -*- coding utf-8 -*-
s=list(input())
ans=""
for i in range(0,len(s),1):
if s[i]=="1" or s[i]=="0":
ans=ans+s[i]
else:
ans=ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,973 |
s249004093 | p04030 | u267300160 | 1555020142 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 209 | S = list(input())
ans = []
for i in S:
if (i == "0"):
ans.append("0")
elif (i == "1"):
ans.append("1")
else:
if (len(ans) != 0):
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,974 |
s810202429 | p04030 | u055941944 | 1554954931 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 211 | # -*- coding utf-8 -*-
s=str(input())
ans=""
for i in range(0,len(s),1):
if s[i]=="0":
ans +="0"
elif s[i]=="1":
ans +="1"
elif s[i]=="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,205,975 |
s225620152 | p04030 | u962330718 | 1554933618 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 127 | 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[:-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,976 |
s395598229 | p04030 | u428855582 | 1554914395 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 209 | answer =[]
for letter in input():
if letter=="1":
answer.append("1")
elif letter=="0":
answer.append("0")
elif letter=="B" and len(answer)>0:
answer.pop()
print("".join(answer)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,977 |
s283608802 | p04030 | u091051505 | 1554858722 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | s = list(input())
t = ""
for s_ in s:
if s_ != "B":
t += s_
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,205,978 |
s919663295 | p04030 | u055941944 | 1554841966 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 179 | # -*- coding utf-8 -*-
s = str(input())
ans = ""
for i in range(0,len(s),1):
if s[i] =="1" or s[i] == "0":
ans += s[i]
else:
ans=ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,979 |
s982961806 | p04030 | u616522759 | 1554817109 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 162 | S = input()
ans = ''
for i in range(len(S)):
if S[i] == 'B':
if ans != '':
ans = ans[:len(ans)-1]
else:
ans += S[i]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,980 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.