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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s112447806 | p04030 | u374099594 | 1550566187 | Python | Python (2.7.6) | py | Accepted | 11 | 2568 | 121 | s = raw_input()
ans = ""
for c in s:
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,081 |
s105208882 | p04030 | u296783581 | 1550543903 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 223 | s = input()
ans=''
for i in range(len(s)):
if s[i] == 'B' and i==0:
ans = ans
elif s[i] == 'B':
ans = ans[:-1]
elif s[i] == '0':
ans+="0"
elif s[i] == '1':
ans+="1"
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,082 |
s295608676 | p04030 | u604412462 | 1550532876 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 259 | keys = input()
ans = []
for i in range(len(keys)):
if keys[i] == '0':
ans.append('0')
elif keys[i] == '1':
ans.append('1')
else:
if ans == []:
continue
else:
del ans[-1]
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,083 |
s697084598 | p04030 | u952130512 | 1550486187 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 136 | s=input()
res=""
for i in range(len(s)):
if s[i]=="1":
res+="1"
elif s[i]=="0":
res+="0"
else:
res=res[:-1]
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,084 |
s765112987 | p04030 | u931462344 | 1550360073 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 237 | s = input()
ans = []
for i in range(len(s)):
if s[i] == '0':
ans.append("0")
elif s[i] == '1':
ans.append("1")
elif s[i] == 'B':
if len(ans) > 0:
ans.pop()
for a in ans:
print(a,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,085 |
s852477224 | p04030 | u411858517 | 1550342440 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 258 | s = input()
res = ''
for i in range(len(s)):
if res == '':
if s[i] == 'B':
pass
else:
res += s[i]
else:
if s[i] == 'B':
res = res[:-1]
else:
res += s[i]
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,086 |
s860350136 | p04030 | u518064858 | 1550330362 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 98 | c=list(input())
s=""
for x in c:
if x!="B":
s+=x
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,206,087 |
s002715839 | p04030 | u177756077 | 1550285183 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 126 | s=str(input())
ans=''
for i in range(len(s)):
if s[i]=="B":
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,088 |
s507041582 | p04030 | u190086340 | 1550180983 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 269 | STR = input()
def solve():
res = ""
for c in STR:
if c == "0":
res += "0"
elif c == "1":
res += "1"
elif c == "B":
if not len(res) == 0:
res = res[:-1]
return res
print(solve())
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,089 |
s367781470 | p04030 | u268318377 | 1550180076 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 204 | S = input()
ans = []
for s in S:
if s == '0':
ans.append('0')
elif s =='1':
ans.append('1')
elif s == 'B':
if len(ans) != 0:
ans.pop(-1)
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,090 |
s817198177 | p04030 | u859897687 | 1550037465 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | n =input()
ans=""
for i in range(len(n)):
if n[i] == "B":
if ans:
ans = ans[:-1]
else:
ans +=n[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,091 |
s987917323 | p04030 | u367130284 | 1549763319 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | a,l=list(input()),[]
for s in a:
if s =="0":l.append("0")
elif s=="1":l.append("1")
elif s=="B":
if len(l)>0:
del l[-1]
print("".join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,092 |
s658698767 | p04030 | u223133214 | 1549689610 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 215 | s=list(input())
ans=[]
for a in s:
if len(ans)==0 and a=='B':
continue
elif a=='B':
del ans[-1]
elif a=='1':
ans.append('1')
else:
ans.append('0')
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,093 |
s348182639 | p04030 | u114954806 | 1549642115 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 202 | ans=[]
for i in input():
if i == "0":
ans.append("0")
elif i == "1":
ans.append("1")
else:
if len(ans) != 0:
del ans[-1]
for i in ans:
print(i,end="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,094 |
s367083853 | p04030 | u483645888 | 1549319311 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 187 | S = input()
str = ''
for w in S:
if w == 'B':
if str == '':
continue
else:
str = str[:-1]
elif w == '0':
str += '0'
elif w == '1':
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,206,095 |
s811530343 | p04030 | u977389981 | 1549040416 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 233 | S = input()
A = []
for i in range(len(S)):
if S[i] == '0':
A.append('0')
elif S[i] == '1':
A.append('1')
else:
if len(A) != 0:
A.pop(-1)
else:
pass
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,096 |
s508282154 | p04030 | u316386814 | 1548936657 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 117 | s = input()
ans = ''
for a in s:
if a == 'B':
ans = ans[:-1]
else:
ans = ans + a
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,097 |
s186466239 | p04030 | u676707608 | 1548930285 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 179 | s=input()
a=[]
for i in range(len(s)):
if s[i]=='0':
a.append('0')
elif s[i]=='1':
a.append('1')
elif 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,206,098 |
s064643110 | p04030 | u239981649 | 1548901940 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 131 | A = []
for a in input():
if a == '0' or a == '1':
A.append(a)
elif len(A) > 0:
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,206,099 |
s988040789 | p04030 | u690536347 | 1548715826 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 87 | 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,206,100 |
s491695100 | p04030 | u667024514 | 1548714212 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 178 | s = str(input())
ans = ""
for i in range(len(s)):
if s[i] == "B":
try:
ans = ans[:-1]
except:
continue
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,101 |
s993615687 | p04030 | u950708010 | 1548443648 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 147 | s = input()
ans = []
for i in s:
if i == 'B':
if ans != []:
ans.pop(-1)
else:
continue
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,102 |
s322311849 | p04030 | u711295009 | 1548213085 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 292 | givenSeq = input()
list1=list(givenSeq)
index=0
while index < len(list1):
if list1[index] == "B":
if index!=0:
del list1[index]
del list1[index-1]
else:
del list1[index]
index-=1
else:
index+=1
print("".join(list1)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,103 |
s671141629 | p04030 | u850266651 | 1548172235 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 180 | s = input()
res = ""
for i in range(len(s)):
if s[i] == "0":
res += "0"
elif s[i] == "1":
res += "1"
elif s[i] == "B":
res = res[:-1]
else:
break
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,104 |
s814886736 | p04030 | u067694718 | 1548028533 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 107 | a = ""
for i in input():
if(i == "B"):
if(a != ""):
a = a[:len(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,105 |
s730078531 | p04030 | u934740772 | 1547957736 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 146 | s=input()
ans=''
for i in range(len(s)):
if s[i]=='B':
if len(ans)!=0:
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,106 |
s672364209 | p04030 | u934740772 | 1547956671 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 154 | s=input()
ans=''
for i in range(len(s)):
if s[i]=='B':
if len(ans)!=0:
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,206,107 |
s825463246 | p04030 | u811156202 | 1547874743 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 252 | l_s = [a for a in input()]
l_str = ''
for a in l_s:
if a == '0':
l_str += ('0')
elif a == '1':
l_str += ('1')
elif a == 'B':
if l_str == '':
pass
else:
l_str = l_str[:-1]
print(l_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,108 |
s888285329 | p04030 | u572561929 | 1547840830 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 192 | s = input()
ans = []
for i in range(len(s)):
if s[i] == '0':
ans += '0'
elif s[i] == '1':
ans += '1'
elif len(ans) != 0:
ans = ans[:-1]
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,109 |
s816339694 | p04030 | u882209234 | 1547821401 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | S = list(input())
ans = ''
for s in S:
if s == 'B':
ans = ans[:-1]
else: ans += s
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,110 |
s780876932 | p04030 | u983918956 | 1547698319 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 209 | s = input()
editor = [""]
for e in s:
if e == "0":
editor.append("0")
elif e == "1":
editor.append("1")
elif e == "B" and editor != []:
del editor[-1]
print("".join(editor)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,111 |
s639998690 | p04030 | u445624660 | 1547689181 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 161 | s = input()
ans = []
for x in s:
if x == "0" or x == "1":
ans.append(x)
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,112 |
s169207478 | p04030 | u619819312 | 1547637398 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 111 | s=input()
c=str()
for i in range(len(s)):
if s[i]=="B":
c=c[:-1]
else:
c+=s[i]
print(c) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,113 |
s435599511 | p04030 | u171366497 | 1547583939 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 197 | s=input()
l=len(s)
ans=''
for i in range(l):
if s[i]=='0':
ans+='0'
if s[i]=='1':
ans+='1'
if s[i]=='B':
if len(ans)!=0:
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,114 |
s479778628 | p04030 | u189575640 | 1547500343 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 210 | import sys
# A,B,C = [int(n) for n in input().split()]
# N = int(input())
S = str(input())
# T = str(input())
ans = ""
for s in S:
if s == "B":
ans = ans[:-1]
else:
ans += s
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,115 |
s998620698 | p04030 | u924895886 | 1547496853 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 131 | s = input()
ans = ""
for i in s:
if i == 'B':
if len(ans) > 0:
ans = ans[:len(ans) - 1]
else:
ans += i
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,116 |
s999339009 | p04030 | u175034939 | 1547416899 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 156 | S = input()
a = ''
for s in S:
if s == '0':
a += '0'
elif s == '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,206,117 |
s690196327 | p04030 | u371467115 | 1547338828 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 129 | s=input()
l=""
for i in s:
if i=="B":
if len(l)!=0:
l=l[:-1]
elif i=="0":
l+=i
elif i=="1":
l+=i
print(l) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,118 |
s946210875 | p04030 | u371467115 | 1547338470 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 157 | s=list(input())
l=[]
for i in s:
if i=="B":
if len(l)!=0:
l.pop()
elif i=="0":
l.append(i)
elif i=="1":
l.append(i)
print("".join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,119 |
s061659403 | p04030 | u231647664 | 1547336936 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | a = str(input())
b = list(a)
c = len(b)
strs = []
for i in range(c):
if b[i] == 'B':
strs = strs[:-1]
else:
strs.append(b[i])
print(''.join(strs)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,120 |
s995188331 | p04030 | u762682474 | 1547040141 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 191 | def execute(s):
r = ''
for b in s:
if b == 'B':
r = r[0:-1]
else:
r += b
return r
if __name__ == '__main__':
print(execute(input()))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,121 |
s512020489 | p04030 | u597374218 | 1547002615 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 68 | t=""
for x in input():
if x=="B":t=t[:-1]
else:t+=x
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,122 |
s857488455 | p04030 | u597374218 | 1547002250 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 115 | s=input()
t=[]
for i in s:
if i=="B" and len(t)!=0:t.pop()
if i=="0" or i=="1":t.append(i)
print(*t,sep="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,123 |
s554948145 | p04030 | u303059352 | 1546765931 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 177 | s = input()
ans = []
for c in s:
if c == '0':
ans.append('0')
elif c == '1':
ans.append('1')
elif len(ans):
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,206,124 |
s994901296 | p04030 | u593063683 | 1546710700 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 102 | S = input()
out = ''
for c in S:
if c=='0' or c=='1': out += c
else: out = out[:-1]
print(out) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,125 |
s539848556 | p04030 | u127856129 | 1546672382 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 74 | a=""
for x in input():
if x=="B":
a=a[:-1]
else:
a+=x
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,126 |
s172582915 | p04030 | u127856129 | 1546672084 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 74 | a=""
for x in input():
if x=="B":
a=a[:-1]
else:
a+=x
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,127 |
s869097180 | p04030 | u726439578 | 1546666767 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 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 s[i]=="B" and 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,128 |
s738508462 | p04030 | u127856129 | 1546640591 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 75 | a=""
for x in input():
if x=="B":
a=a[:-1]
else:
a=a+x
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,129 |
s281303805 | p04030 | u127856129 | 1546640479 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 80 | a=""
for x in input():
if x=="B":
a=a[:-1]
else:
a=a+x
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,130 |
s614358712 | p04030 | u740284863 | 1546514768 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 277 | command = str(input())
N = len(command)
text = ""
for i in range(N):
if command[i] == "1":
text += "1"
elif command[i] == "0":
text += "0"
else:
if text == "":
text = text
else:
text = text[:-1]
print(text)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,131 |
s073903696 | p04030 | u272557899 | 1546466767 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 270 | s = input()
t = ""
for i in range(len(s)):
if s[i] == "0":
t += "0"
elif s[i] == "1":
t += "1"
elif s[i] == "B":
if len(t) != 0:
k = list(t)
del k[-1]
t = ''.join(k)
#t.pop(-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,132 |
s022486845 | p04030 | u972398652 | 1546423986 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 205 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "0":
ans = ans + "0"
elif s[i] == "1":
ans = ans + "1"
else:
if ans != "":
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,133 |
s754776404 | p04030 | u281303342 | 1546392749 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 155 | S = input()
ans = []
for s in S:
if s in ["0","1"]:
ans.append(s)
elif s == "B" and ans != []:
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,134 |
s747735286 | p04030 | u777923818 | 1546385941 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 134 | ans = ""
for x in input():
if x == "B":
if len(ans):
ans = ans[:-1]
else:
ans = 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,206,135 |
s521736740 | p04030 | u089032001 | 1546368981 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 136 | S = input()
ans = ""
for s in S:
if s == "B" and len(ans) > 0:
ans = ans[:-1]
elif s == "1" or s == "0":
ans += s
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,136 |
s196817760 | p04030 | u586149955 | 1546305251 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | s = ''
b = 0
for i in reversed(input()):
if i != 'B':
if b > 0:
b -= 1
else:
s += i
else:
b += 1
print(s[::-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,137 |
s431522528 | p04030 | u586478468 | 1546275544 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 175 | a = list(input())
ans = ''
for i in a:
if(i=='0'):
ans+='0'
elif(i=='1'):
ans+="1"
elif(i=='B' and len(ans) >0):
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,138 |
s154959799 | p04030 | u126823513 | 1546258503 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 167 | s = input()
result = list()
for w in s:
if w == "B":
if len(result):
result.pop()
else:
result.append(w)
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,139 |
s716352440 | p04030 | u048945791 | 1546202223 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 139 | s = input()
ans = ""
for si in s:
if si == "B":
if ans != "":
ans = ans[:-1]
else:
ans += si
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,140 |
s602903387 | p04030 | u226108478 | 1546050649 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 368 | # -*- coding: utf-8 -*-
def main():
s = input()
ans = ''
for si in s:
if si == '0':
ans += si
elif si == '1':
ans += si
elif si == 'B' and len(ans) == 0:
pass
elif si == 'B' and len(ans) > 0:
ans = ans[:len(ans) - 1]
pri... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,141 |
s866091068 | p04030 | u434208140 | 1546031908 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 111 | s=input()
t=""
for w in s:
if(w=="0"):t+="0"
elif(w=="1"):t+="1"
else:
if(len(t)>0):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,142 |
s529314961 | p04030 | u129978636 | 1545863504 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 91 | 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,143 |
s795498246 | p04030 | u129978636 | 1545862908 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 219 | s = input()
ans=[]
for i in range(len(s)):
if(s[i] == '0' or s[i] == '1'):
ans.append(s[i])
else:
if(len(ans) != 0):
del ans[-1]
for i in range(len(ans)):
print(ans[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,206,144 |
s617800673 | p04030 | u023515228 | 1545821059 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 53 | s=''
for c in input():s=[s+c,s[:-1]][c=='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,206,145 |
s773951279 | p04030 | u886274153 | 1545820031 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 94 | 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,146 |
s268376943 | p04030 | u371467115 | 1545779576 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 182 | s=list(input())
l=[]
for i in s:
if i=="1":
l.append(i)
elif i=="0":
l.append(i)
elif i=="B":
if len(l)!=0:
l.pop()
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,147 |
s159914204 | p04030 | u052332717 | 1545752701 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 185 | s = input()
ans = ''
for i in s:
if i == '1':
ans += '1'
if i == '0':
ans += '0'
if i == 'B':
if len(ans)>0:
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,148 |
s827459623 | p04030 | u385167811 | 1545596393 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 195 | s = str(input().rstrip())
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,206,149 |
s975468245 | p04030 | u996276765 | 1545500497 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 188 | s = input()
text = ''
for i in range(len(s)):
if s[i] == '0':
text += '0'
elif s[i] == '1':
text += '1'
elif s[i] == 'B':
text = text[:-1]
print(text) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,150 |
s585331480 | p04030 | u364741711 | 1545493599 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 199 | l=list(input())
ans=[]
display=""
for i in range(len(l)):
if l[i]=="B":
if len(ans)>0:
ans.pop()
else:
ans.append(l[i])
for i in range(len(ans)):
display+=ans[i]
print(display) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,151 |
s196990912 | p04030 | u297574184 | 1545442294 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 131 | ss=input()
anss=[]
for s in ss:
if s == 'B':
if anss: anss.pop()
else:
anss.append(s)
print(''.join(anss))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,152 |
s740509832 | p04030 | u923279197 | 1545367100 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 189 | s = input()
i = 0
while s[i] == 'B':
i += 1
ans = s[i]
for j in range(i+1,len(s)):
if s[j] =='0' or s[j] == '1':
ans = ans + s[j]
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,153 |
s920584535 | p04030 | u941753895 | 1545284184 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 120 | s=list(input())
a=''
for i in s:
if i=='0' or i=='1':
a+=i
else:
if len(a)!=0:
a=a[: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,154 |
s025827826 | p04030 | u060936992 | 1545271259 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 331 | #
s=input() #0,1,Bからなる文字列を入力
a="" #aは求める文字列
l=0 #lはaの長さ
for i in s:
if i=="B": #iがBなら末尾を消去
a=a[0:l-1]
l-=1
else: #iがB出なければaの末尾にiを付ける
a+=i
l+=1
if l<0: #lは負にならない
l=0
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,155 |
s015029112 | p04030 | u589726284 | 1545255550 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 160 | s = input()
result = ''
for i in range(len(s)):
if not 'B' == s[i]:
result += s[i]
elif 'B' == s[i]:
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,206,156 |
s112461009 | p04030 | u641406334 | 1545246264 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 135 | s=input()
ans=[]
for c in s:
if c=='B' and len(ans)>0:
ans.pop(-1)
elif c=='B':
pass
else:
ans+=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,157 |
s883972021 | p04030 | u887207211 | 1545192440 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 150 | S = input()
st = ''
for s in S:
if(s == '0'):
st += '0'
elif(s == '1'):
st += '1'
else:
if(st != ''):
st = st[:-1]
print(st)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,158 |
s796483925 | p04030 | u880373275 | 1545169815 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 175 | def main():
s = ''
for c in input():
if c == 'B':
s = s[:-1]
else:
s += c
print(s)
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,159 |
s825895468 | p04030 | u364741711 | 1545165275 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 199 | l=list(input())
ans=[]
display=""
for i in range(len(l)):
if l[i]=="B":
if len(ans)>0:
ans.pop()
else:
ans.append(l[i])
for i in range(len(ans)):
display+=ans[i]
print(display) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,160 |
s230050309 | p04030 | u201234972 | 1545013517 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 150 | s = input()
ans = ""
for t in s:
if t == "0":
ans += "0"
elif t == "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,161 |
s498346099 | p04030 | u557437077 | 1544847475 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 384 | def listToString(_list, split=""):
maped_list = map(str, _list) # mapで要素すべてを文字列に
mojiretu = split.join(maped_list)
return mojiretu
s = input()
out = []
for i in range(len(s)):
if s[i] == "0":
out.append("0")
elif s[i] == "1":
out.append("1")
else:
if len(out) > 0:
... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,162 |
s616166869 | p04030 | u798086274 | 1544569424 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | s = input()
result = ""
for i in s:
if i == 'B':
result = result[:-1]
else:
result = result + i
print(result) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,163 |
s946075714 | p04030 | u764056643 | 1544504386 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 153 | step = input()
s = list()
for c in step:
if c == 'B':
if len(s) > 0:
s.pop()
else:
s.append(c)
for c in s:
print(c, 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,164 |
s980915041 | p04030 | u695811449 | 1544433455 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 137 | S=input()
ANS=""
for s in S:
if s=="0":
ANS+="0"
elif s=="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,165 |
s864765811 | p04030 | u514383727 | 1544248208 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 141 | sl = list(input())
res = ""
for s in sl:
if s == "B" and res != "":
res = res[:-1]
if s in "01":
res += s
print(res)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,166 |
s008631657 | p04030 | u572542887 | 1544113748 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 269 | line = input()
str = list(line)
ans = []
c = 0
for i in str:
if (i == "1") or (i == "0"):
ans.append(i)
elif i == "B":
if c != 0:
c -= 1
del ans[c]
c -= 1
c += 1
for i in ans:
print("".join(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,206,167 |
s770025405 | p04030 | u555962250 | 1544060212 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 117 | s = input()
ans = ""
for i in s:
if i == 'B':
if len(ans) > 0:
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,168 |
s485923987 | p04030 | u858136677 | 1544049027 | Python | Python (3.4.3) | py | Accepted | 20 | 3064 | 294 | s = list(input())
ans = []
for i in range(len(s)):
if s[i] == "1":
ans.append("1")
elif s[i] == "0":
ans.append("0")
elif len(ans) > 0:
ans.pop(-1)
for i in range(len(ans)):
if i != len(ans)-1:
print(ans[i],end="")
else:
print(ans[i]) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,169 |
s314163208 | p04030 | u140251125 | 1544022928 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 211 | # input
s = input()
ans = ''
for i in range(len(s)):
if s[i] == '0':
ans += '0'
if s[i] == '1':
ans += '1'
if s[i] == 'B' and ans != '':
ans = ans[:len(ans) - 1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,170 |
s606404361 | p04030 | u761529120 | 1543975483 | Python | Python (3.4.3) | py | Accepted | 20 | 3188 | 249 | s = input()
output = ""
cnt = 0
for i in s:
if i == "0":
output += "0"
cnt += 1
elif i == "1":
output += "1"
cnt += 1
elif i == "B":
if output != "":
output = output[:-1]
print(output) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,171 |
s117564172 | p04030 | u844789719 | 1543424669 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 105 | ans = ''
for c in input():
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,206,172 |
s898483046 | p04030 | u432805419 | 1543288797 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 213 | moji = list(input())
ans = []
for i in moji:
if i == "0":
ans.append("0")
elif i == "1":
ans.append("1")
else:
if len(ans) != 0:
ans.pop()
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,206,173 |
s845480778 | p04030 | u371763408 | 1543246353 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | s = input()
string=[]
for i in s:
if i == "B" and len(string)>0:
del string[-1]
elif i == "1" or i == "0":
string.append(i)
print("".join(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,174 |
s559225256 | p04030 | u919521780 | 1542946294 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 163 | s = input()
ans = []
for c in s:
if c == '0':
ans.append('0')
elif c == '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,175 |
s065735423 | p04030 | u060392346 | 1542914627 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | s = input()
l = []
for i in s:
if i == "B" and len(l) > 0:
del l[-1]
elif i == '0' or i == '1':
l.append(i)
print("".join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,176 |
s681069644 | p04030 | u869728296 | 1542816635 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 321 | s=input()
s=list(s)
b=[]
for i in range(len(s)):
if(s[i]=="0"):
b.append(0)
elif(s[i]=="1"):
b.append(1)
elif(s[i]=="B"):
if(len(b)!=0):
b.pop(-1)
#b.reverse()
c=str(b)
c=c.replace(",","")
c=c.replace("[","")
c=c.replace("]","")
c=c.replace(" ","")
print(c)
... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,177 |
s950508968 | p04030 | u993642190 | 1542699996 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | s = input()
out_str = ""
for i in range(len(s)) :
if (s[i] == "B") :
if (len(out_str) != 0) :
out_str = out_str[:-1]
continue
out_str += s[i]
print(out_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,178 |
s759020581 | p04030 | u136869985 | 1542390181 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 118 | S = input()
a = ''
for s in S:
if s in ['0', '1']:
a += s
else:
a = a[:-1]
else:
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,179 |
s966068360 | p04030 | u001024152 | 1542385096 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 211 | s = input()
ans = []
for si in s:
if si=="1":
ans.append(si)
elif si=="0":
ans.append(si)
else: # si=="B"
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,180 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.