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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s309424507 | p04030 | u537782349 | 1562980920 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | a = input()
b = ""
for i in range(len(a)):
if a[i] == "0":
b += "0"
elif a[i] == "1":
b += "1"
else:
b = b[:-1]
print(b)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,781 |
s414328450 | p04030 | u314050667 | 1562965722 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 189 | s = input()
ans = []
for i in list(map(str,s)):
if i in ["0","1"]:
ans.append(i)
elif i == "B":
if len(ans) != 0:
ans.pop(len(ans)-1)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,782 |
s190988467 | p04030 | u567434159 | 1562898780 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 129 | s = input()
ans = []
for it in s:
if it == 'B':
if len(ans):
ans.pop()
else:
ans.append(it)
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,783 |
s329876961 | p04030 | u172873334 | 1562760640 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 183 | s = input()
ans = ''
for c in s:
if c == '0':
ans = ans+'0'
elif c == '1':
ans = ans+'1'
elif c == '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,205,784 |
s092823209 | p04030 | u123824541 | 1562726893 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 339 | s = list(str(input()))
sentence = []
ans = ''
for i in range(len(s)):
if s[i] == '0':
sentence.append(0)
elif s[i] == '1':
sentence.append(1)
else:
if sentence == []:
continue
else:
sentence.pop(-1)
for i in range(len(sentence)):
ans += str(sente... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,785 |
s339234308 | p04030 | u448655578 | 1562656289 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 201 | 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:
pass
else:
ans.pop()
print("".join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,786 |
s785733473 | p04030 | u787456042 | 1562469172 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 162 | s = input()
t = ""
for i in s :
if i=="0" :
t+="0"
elif i=="1" :
t+="1"
elif t=="" :
pass
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,787 |
s044090269 | p04030 | u665038048 | 1562446002 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | s = input()
ans = ''
for i in range(len(s)):
if s[i] == 'B':
if len(ans) == 0:
pass
ans = ans[:-1]
else:
ans+=s[i]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,788 |
s391131696 | p04030 | u672475305 | 1562281472 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 187 | s = input()
lst = list(s)
ans = ''
for c in lst:
if c=='1':
ans += '1'
elif c=='0':
ans += '0'
elif c=='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,205,789 |
s900246610 | p04030 | u093500767 | 1562272096 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | list = input()
ans = []
for i in list:
if i=="B" and len(ans)!=0:
ans.pop()
elif i=="0" or i=="1":
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,790 |
s888426130 | p04030 | u927534107 | 1562268942 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | s = list(str(input()))
ans=[]
for i in s:
if i == "B":
if len(ans)!=0:tmp=ans.pop(-1)
else:ans.append(i)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,791 |
s924995746 | p04030 | u792217717 | 1562268050 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 122 | s = input()
news = ""
for c in s:
if c == 'B':
news = news[:-1]
else:
news = news + c
print(news)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,792 |
s661644130 | p04030 | u473291366 | 1562201774 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 218 | S = input()
ans = ""
for s in S:
if s == "0":
ans += "0"
elif s == "1":
ans += "1"
elif s == "B":
length = len(ans)
if length > 0:
ans = ans[:length-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,793 |
s417957549 | p04030 | u759412327 | 1562124572 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 137 | a = input()
b = []
for s in a:
if s=="0" or s=="1":
b.append(s)
elif s=="B" and len(b)!=0:
b.pop()
else:
print("".join(b)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,794 |
s837609636 | p04030 | u790812284 | 1562112289 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 194 | s=input()
l=[]
for i in range(len(s)):
if s[i]=="0":
l.append("0")
elif s[i]=="1":
l.append("1")
else:
if l==[]:
pass
else:
l.pop(-1)
print(*l,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,795 |
s855019171 | p04030 | u380933932 | 1562038237 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 143 | s=input()
ans=""
for i in s:
if i=="0":
ans+="0"
elif i=="1":
ans+="1"
elif 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,796 |
s169615197 | p04030 | u537976628 | 1562032132 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | s = input()
output = ""
for i in s:
if i == '0' or i == '1':
output += i
elif i == 'B':
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,205,797 |
s801561399 | p04030 | u375823148 | 1562006195 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | a = ""
for i in list(input()):
if i == "0": a += "0"
if i == "1": a += "1"
if i == "B":
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,798 |
s975686300 | p04030 | u116670634 | 1561938653 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 161 | s = input()
ans = ""
for i in s:
if i == '0':
ans += '0'
elif i == '1':
ans += '1'
elif 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,799 |
s792431110 | p04030 | u970449052 | 1561839039 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | s=input()
ans=''
for si in s:
if si=='0':
ans+='0'
elif si=='1':
ans+='1'
else:
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,800 |
s947879178 | p04030 | u513081876 | 1561824485 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | s = input()
ans = ''
for i in s:
if i == '0' or i == '1':
ans = ans + i
elif len(ans) != 0 and 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,801 |
s863579573 | p04030 | u724742135 | 1561774323 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 221 | from collections import deque
from sys import stdin
s = stdin.readline().rstrip()
ans = deque()
for c in s:
if c == 'B' and len(ans) != 0:
ans.pop()
elif c == '0' or c == '1':
ans.append(c)
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,802 |
s274644703 | p04030 | u114648678 | 1561720225 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 342 | s=input()
n=len(s)
ans=[]
for i in range(n):
if s[i]=='0':
ans.append('0')
elif s[i]=='1':
ans.append('1')
else:
if ans==[]:
continue
else:
ans.pop(-1)
for i in range(len(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,803 |
s387936582 | p04030 | u293523199 | 1561701245 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 166 | S = list(input())
result = ''
for key in S:
if( key == '0' or key == '1' ):
result += key
if( key == 'B' ):
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,804 |
s539411221 | p04030 | u243699903 | 1561689130 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 193 | s=input()
ans=""
for c in s:
if c=="B" and ans=="":
continue
if c=="B":
ans=ans[:-1]
elif c=="0":
ans+="0"
elif c=="1":
ans+="1"
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,805 |
s241667963 | p04030 | u373499377 | 1561678754 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 429 | def main():
keylist = input()
word = ''
for key in keylist:
if key == 'B':
word = word[:-1]
else:
word += key
print(word)
# word = []
#
# for key in keylist:
# if key == 'B':
# if word:
# word.pop()
# el... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,806 |
s402175524 | p04030 | u373499377 | 1561678468 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 253 | def main():
keylist = input()
word = []
for key in keylist:
if key == 'B':
if word:
word.pop()
else:
word.append(key)
print(''.join(word))
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,807 |
s846794575 | p04030 | u620945921 | 1561665170 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 91 | s=input()
t=''
for i in s:
if i=='B':
t=t[:-1]
else:
t+=i
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,808 |
s892742470 | p04030 | u222207357 | 1561580938 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | s = input()
ans = ''
for ch in s:
if ch != 'B':
ans += ch
else:
if s == '':
continue
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,809 |
s352649197 | p04030 | u671252250 | 1561516840 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 317 | # coding: utf-8
# Your code here!
i_list = list(input())
o_list = []
for i in range(len(i_list)):
if i_list[i] == "0":
o_list.append("0")
elif i_list[i] == "1":
o_list.append("1")
elif len(o_list) >= 1:
del o_list[-1]
for j in range(len(o_list)):
print(o_list[j], end = "")
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,810 |
s658938261 | p04030 | u015316911 | 1561487486 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 303 | s = input()
s_list = list(s)
out_list = []
for i in range(len(s_list)):
if s_list[i] == "0":
out_list.append("0")
elif s_list[i] == "1":
out_list.append("1")
elif s_list[i] == "B":
if out_list:
del out_list[-1]
for ol in out_list:
print(ol, 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,811 |
s062673614 | p04030 | u714300041 | 1561486048 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 183 | IN = input()
OUT = []
for order in IN:
if order == "B" and len(OUT) != 0:
OUT.pop()
elif order == "0" or order == "1":
OUT.append(order)
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,812 |
s139986027 | p04030 | u026155812 | 1561473868 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 175 | s = input()
ans = ''
for x in s:
if x != 'B':
ans += x
else:
if len(ans) == 0:
continue
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,813 |
s921366106 | p04030 | u290211456 | 1561363278 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 153 | s = input()
res =[]
for i in range(len(s)):
if s[i] == 'B':
if len(res) != 0:
res.pop(len(res)-1)
continue
res.append(s[i])
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,814 |
s180975721 | p04030 | u827141374 | 1561346525 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | s = input()
ans = []
for i in s:
if i == 'B':
if len(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,815 |
s808686347 | p04030 | u298297089 | 1561281752 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | s = input()
while s.count('B') > 0:
s = s.replace('1B', '')
s = s.replace('0B', '')
if s != '' and s[0] == 'B':
s = s[1:]
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,816 |
s916206771 | p04030 | u450339194 | 1561280952 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 282 | nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()
S = s()
res = ''
for c in S:
if c == '0':
res += '0'
elif c == '1':
res += '1'
elif len(res) > 0:
res = res[:-1]
print(res)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,817 |
s029743676 | p04030 | u580904613 | 1561251646 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 145 | str = input()
ans = ''
for i in str:
if i is '0':
ans += '0'
elif i is '1':
ans += '1'
elif i is '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,818 |
s494068407 | p04030 | u323120917 | 1561247805 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 223 | s=input().rstrip()
l=[]
x=list(s)
for i in range(0,len(x)):
if x[i]=='0':
l.append(0)
elif x[i]=='1':
l.append(1)
else:
if len(l)!=0:
del(l[len(l)-1])
for i in range(0,len(l)):
print(l[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,819 |
s625798839 | p04030 | u497046426 | 1561175885 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | S = 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,205,820 |
s625759752 | p04030 | u970308980 | 1561173414 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 219 | def abc():
s = input().rstrip()
ans = []
for _s in s:
if _s == 'B':
if len(ans) > 0:
ans.pop()
continue
ans.append(_s)
print(''.join(ans))
abc()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,821 |
s937115224 | p04030 | u059210959 | 1561169019 | Python | Python (3.4.3) | py | Accepted | 53 | 6352 | 904 | # encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,822 |
s276785342 | p04030 | u371409687 | 1561140190 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 145 | s=input()
ans=""
for i in range(len(s)):
if s[i]=="0":
ans+="0"
elif s[i]=="1":
ans+="1"
else:ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,823 |
s614635737 | p04030 | u905268546 | 1561129095 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 214 | s = input()
ans = ""
for i in s:
if i == "0":
ans += "0"
elif i == "1":
ans += "1"
else:
if ans == "":
continue
else:
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,824 |
s603211585 | p04030 | u494927057 | 1561123916 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | s = input()
ans = []
for w in s:
if w == 'B' and len(ans) > 0:
ans.pop()
elif w != 'B':
ans.append(w)
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,825 |
s459210130 | p04030 | u494927057 | 1561123732 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 136 | s = str(input())
while 'B' in s:
if s[0] == 'B':
s = s[1:]
s = s.replace('0B', '')
s = s.replace('1B', '')
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,826 |
s450642723 | p04030 | u494927057 | 1561096697 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 214 | s = input()
pos = s.find('B')
while pos > -1:
if pos == 0:
s = s[1:]
elif pos == len(s) - 1:
s = s[0:pos - 1]
else:
s = s[0:pos - 1] + s[pos + 1:]
pos = s.find('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,827 |
s990243148 | p04030 | u691018832 | 1561080702 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 197 | import sys
input = sys.stdin.readline
s = input()
ans = ''
for i in range(len(s)):
if 'B' in s[i]:
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,205,828 |
s077400243 | p04030 | u663014688 | 1560990660 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 225 | s = input()
ans = []
for i in range(len(s)):
if s[i] == '0':
ans.append('0')
if s[i] == '1':
ans.append('1')
if s[i] == 'B':
if len(ans) != 0:
ans.pop(-1)
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,829 |
s282829790 | p04030 | u539517139 | 1560977582 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 193 | s=input()
a=[]
def b(x):
if len(x)!=0:
x=x[:len(x)-1]
return x
for i in range(len(s)):
if s[i]=='B':
a=b(a)
else:
a.append(s[i])
for _ in range(len(a)):
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,205,830 |
s929981617 | p04030 | u761989513 | 1560955625 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | s = list(input())
t = ""
for i in s:
if i == "B":
if t:
t = t[:-1]
else:
t += i
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,831 |
s202943036 | p04030 | u623687794 | 1560905540 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 189 | s=list(input())
ans=""
l=len(s)
n=0
for i in range(l):
if s[i]=="0"or s[i]=="1":
ans+=s[i]
n+=1
elif s[i]=="B" and n==0:
pass
else:
ans= ans[:n-1]
n-=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,832 |
s663433623 | p04030 | u606045429 | 1560837615 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 150 | S = input()
ans = []
for s in S:
if s == "B":
if len(ans) != 0:
ans.pop()
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,833 |
s021285127 | p04030 | u921194336 | 1560804377 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 231 | s = input()
r = []
for i in range(len(s)):
if s[i] == "0":
r.append("0")
elif s[i] == "1":
r.append("1")
elif s[i] == "B" and len(r) != 0:
del r[-1]
else:
continue
print("".join(r))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,834 |
s363879669 | p04030 | u671455949 | 1560732517 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | s = input()
ans = []
for ch in s:
if ch == "0" or ch == "1":
ans.append(ch)
elif len(ans) > 0:
ans.pop()
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,835 |
s070314455 | p04030 | u245870380 | 1560631616 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | 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,836 |
s534557168 | p04030 | u245870380 | 1560631501 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 189 | s = input()
ans = ""
for i in s:
if i == '0':
ans += '0'
elif i == '1':
ans += '1'
elif 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,205,837 |
s752270969 | p04030 | u430223993 | 1560619841 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 180 | s = input()
key = ''
for i in s:
if i == '0':
key += '0'
elif i == '1':
key += '1'
else:
if len(key) != 0:
key = key[:-1]
print(key) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,838 |
s914300867 | p04030 | u073549161 | 1560614338 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | s = input()
res = ""
for i in range(len(s)):
if s[i] == "0":
res = res + "0"
if s[i] == "1":
res = res + "1"
if s[i] == "B":
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,205,839 |
s689809810 | p04030 | u701318346 | 1560431876 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 166 | s = input()
ans = ''
for i in range(len(s)):
if s[i] == '0' or s[i] == '1':
ans = ans + s[i]
elif s[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,205,840 |
s560272290 | p04030 | u114648678 | 1560336017 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 210 | s=input()
ans=[]
for i in range(len(s)):
if s[i]=='0':
ans.append(0)
elif s[i]=='1':
ans.append(1)
elif ans==[]:
continue
else:
ans.pop()
for j in range(len(ans)):
print(ans[j],end='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,841 |
s326067850 | p04030 | u102461423 | 1560318536 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | s = input()
x = []
for c in s:
if c == 'B':
if x:
x.pop()
else:
x.append(c)
answer = ''.join(x)
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,842 |
s408515271 | p04030 | u474423089 | 1560308353 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 230 | def main():
s = list(input())
ans = []
for i in s:
if i != "B":
ans.append(i)
elif ans:
ans.pop(-1)
for i in ans:
print(i,end='')
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,843 |
s723541720 | p04030 | u822738981 | 1560221796 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 278 | # -*- coding: utf-8 -*-
s = input()
ans = []
for i in s:
if i == '0':
ans.append('0')
elif i == '1':
ans.append('1')
elif i == 'B' and ans.count('0') == 0 and ans.count('1') == 0:
continue
else:
ans.pop()
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,844 |
s931965646 | p04030 | u131405882 | 1560217603 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 168 | s = input()
ans = ''
for i in range(len(s)):
if s[i] == '1':
ans += '1'
elif s[i] == '0':
ans += '0'
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,845 |
s873812971 | p04030 | u494514222 | 1560199713 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | s = 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,205,846 |
s888004995 | p04030 | u463655976 | 1560113528 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | s = []
for x in input():
if x == "B":
if len(s) > 0:
s.pop()
else:
s.append(x)
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,847 |
s940986967 | p04030 | u538632589 | 1560107435 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 249 | s = input()
stack = []
for _s in s:
if _s == "0":
stack.append("0")
elif _s == "1":
stack.append("1")
else:
if len(stack) > 0:
stack.pop(len(stack)-1)
res = ""
for s in stack:
res += s
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,848 |
s926229275 | p04030 | u095756391 | 1560026906 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 177 | s = input()
ans = ''
for i in range(len(s)):
if s[i] == '0':
ans += '0'
elif s[i] == '1':
ans += '1'
else:
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,849 |
s975266289 | p04030 | u400620139 | 1560019752 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | str = input()
ans = ''
for s in str:
if s != 'B':
ans += s
else:
ans = ans[0:len(ans)-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,850 |
s722181961 | p04030 | u136811344 | 1560012750 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 167 | s = input().strip()
ans = ""
for s_i in s:
if s_i == "1":
ans += "1"
elif s_i == "0":
ans += "0"
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,851 |
s273404633 | p04030 | u733774002 | 1559937041 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 209 | s = input()
ans = []
for i in range(len(s)):
if s[i] == "1":
ans.append("1")
elif s[i] == "0":
ans.append("0")
else:
if ans != []:
ans.pop()
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,852 |
s084368643 | p04030 | u637918426 | 1559884120 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 213 | l = list(input())
list = []
for i in range(len(l)):
if l[i] == 'B':
if not list:
continue
else:
del list[-1]
else:
list.append(l[i])
print(''.join(list))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,853 |
s278637244 | p04030 | u365364616 | 1559851096 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | s = input()
ans = []
for si in s:
if si == 'B':
if len(ans) > 0:
ans.pop()
else:
ans.append(si)
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,854 |
s297169550 | p04030 | u559126797 | 1559776300 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | s=input()
answer=""
for i in range(len(s)):
if s[i]== '0':
answer+="0"
elif s[i]=='1':
answer+="1"
elif len(answer)>0:
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,855 |
s188861117 | p04030 | u353652911 | 1559704674 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 95 | t=""
for x in input():
if x=="B":
t=t[:-1]
else:
t+=x
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,856 |
s494314580 | p04030 | u937642029 | 1559697060 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 215 | s=list(input())
t=[]
for i in range(len(s)):
if(s[i]=="0"):
t = t +["0"]
if(s[i]=="1"):
t = t +["1"]
if(s[i]=="B"):
if(len(t)>0):
t = t[:-1]
a="".join(t)
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,857 |
s527979089 | p04030 | u977642052 | 1559692494 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 180 | s = input()
s_l = []
for i in range(0, len(s)):
if s[i] == 'B' and len(s_l) > 0:
s_l.pop()
elif s[i] != 'B':
s_l.append(s[i])
print(''.join(s_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,858 |
s811353941 | p04030 | u864453204 | 1559674203 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | s = input()
ans = []
for i in range(len(s)):
if s[i] == "B":
try:
ans.pop()
except:
pass
else:
ans.append(s[i])
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,859 |
s045842690 | p04030 | u399721252 | 1559669202 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 |
s = input()
display = ""
for i in s:
if display != "" and i == "B":
display = display[:-1]
elif i == "1" or i == "0":
display += 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,205,860 |
s972033357 | p04030 | u374531474 | 1559616565 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 172 | s = input()
ans = ''
for k in s:
if k == '0':
ans += '0'
elif k == '1':
ans += '1'
elif ans != '':
ans = ans[:len(ans) - 1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,861 |
s843565026 | p04030 | u564060397 | 1559593026 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 129 | a=input()
b=""
for i in a:
if i=="0":
b+="0"
if i=="1":
b+="1"
if i=="B":
b=b[:-1]
print(b) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,862 |
s663609894 | p04030 | u498620941 | 1559539631 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 236 | s = list(input())
size = len(s)
ans = []
for i in range(size) :
if len(ans) >= 1 :
if s[i] == "B" :
ans.pop(-1)
else : ans.append(s[i])
elif s[i] != "B" : ans.append(s[i])
b = "".join(ans)
print(b) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,863 |
s182709699 | p04030 | u164957173 | 1559436163 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 163 | S = list(input())
result = []
for i in S:
if i == "0" or i == "1":
result.append(i)
else:
if len(result) > 0:
result.pop()
print("".join(result)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,864 |
s183210810 | p04030 | u346395915 | 1559430943 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 227 | s = list(input())
ans = []
for i in s:
if i == "0":
ans.append("0")
elif i == "1":
ans.append("1")
else:
try:
x = ans.pop()
except:
pass
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,865 |
s857571531 | p04030 | u483640741 | 1559343152 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 218 | n=list(input())
answer=[]
for i in n:
if i=="0":
answer.append("0")
elif i=="1":
answer.append("1")
elif i=="B":
if len(answer):
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,866 |
s218762264 | p04030 | u095089755 | 1559301942 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 191 | s = list(input())
out = []
for i in range(len(s)):
if s[i] == '0' or s[i] == '1':
out.append(s[i])
else:
if len(out) > 0:
out.pop(-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,867 |
s435198376 | p04030 | u483640741 | 1559260331 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 271 | x=list(input())
answer=[]
for i in range(len(x)):
if x[i]=="0":
answer.append("0")
elif x[i]=="1":
answer.append("1")
elif x[i]=="B":
if len(answer):
answer.pop()
else:
pass
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,868 |
s227802492 | p04030 | u223646582 | 1559242002 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 173 | s=input()
ans=[]
while len(s)!=0:
if s[0] in ('0','1'):
ans.append(s[0])
elif s[0] == 'B' and len(ans)!=0:
ans.pop()
s=s[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,869 |
s881511261 | p04030 | u551909378 | 1559196452 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 197 | s = list(input())
edit = []
for i in s:
if i == '0': edit += ['0']
elif i == '1': edit += ['1'
]
elif i == 'B':
if edit != []: edit = edit[:-1]
print(''.join(edit)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,870 |
s542513926 | p04030 | u460245024 | 1559193645 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 158 | d = []
for s in input():
if s == 'B' and len(d) == 0:
continue
elif s == 'B':
d.pop()
else:
d.append(s)
print(*d, 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,871 |
s791541717 | p04030 | u502389123 | 1559184754 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 178 | s = input()
a = []
for w in s:
if w == '0':
a.append('0')
elif w == '1':
a.append('1')
else:
if len(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,872 |
s351736852 | p04030 | u366959492 | 1559159294 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | s=list(input())
ans=""
for i in s:
if i=="0" or i=="1":
ans+=i
else:
ans=ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,873 |
s152299957 | p04030 | u063550903 | 1559156392 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 180 | s = input()
ans = []
for i in s:
if i == "0":
ans.append("0")
elif i == "1":
ans.append("1")
else:
ans = ans[:-1]
ans = "".join(ans)
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,874 |
s646226975 | p04030 | u449473917 | 1559133701 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 173 | a=list(input())
ans=[]
for i in a:
if i=="0":
ans.append("0")
elif i=="1":
ans.append("1")
elif i=="B":
ans=ans[0:-1]
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,875 |
s600612006 | p04030 | u416758623 | 1559045119 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 129 | s = input()
ans = ""
for i in s:
if "0" == i or "1" == i:
ans+=i
elif "B" == i:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,876 |
s913007361 | p04030 | u266874640 | 1559000445 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 180 | s = input()
s_list = []
for i in s:
if i == "0" or i == "1":
s_list.append(i)
else:
if len(s_list) > 0:
del s_list[-1]
print("".join(s_list))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,877 |
s897720860 | p04030 | u856169020 | 1558961149 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 164 | S = str(input())
now = []
for s in S:
if s == 'B':
if len(now) != 0:
now.pop(-1)
else:
now.append(s)
ans = ''
for s in now:
ans += s
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,878 |
s003864018 | p04030 | u501163846 | 1558932553 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 203 | s=list(str(input()))
ans=""
for i in range(len(s)):
if s[i]=="0":
ans+="0"
elif s[i]=="1":
ans+="1"
elif s[i]=="B":
if 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,879 |
s883654176 | p04030 | u723180465 | 1558902173 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 135 | s = input().strip()
v = ''
for c in s:
if c in ('0', '1'):
v += c
else:
v = '' if v == '' else v[:-1]
print(v) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,880 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.