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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s674614317 | p04030 | u396495667 | 1571075888 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 86 | s = input()
l =''
for i in s:
if i =='B':
l = l[0:-1]
else:
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,205,481 |
s819539318 | p04030 | u901180556 | 1571068533 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | s = ''
for i in input():
if i == 'B' and s is not None:
s = s[:-1]
else:
s += i
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,482 |
s541006176 | p04030 | u502486340 | 1571027909 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 87 | 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,205,483 |
s516204287 | p04030 | u203383537 | 1571027707 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | s=input()
ans=''
for i in s:
if i == 'B':
ans=ans[:-1]
else:
ans =ans+i
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,484 |
s809224136 | p04030 | u273201018 | 1571020960 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | S = list(input())
R = ''
for s in S:
if s == 'B':
R = R[:-1]
else:
R = R + s
print(R)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,485 |
s716845451 | p04030 | u617203831 | 1571018568 | 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,205,486 |
s225433617 | p04030 | u281610856 | 1570998234 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 225 | s = input()
ans = []
for op in s:
if op == '0':
ans.append(op)
elif op == '1':
ans.append(op)
else:
if len(ans) > 0:
ans.pop()
ss = ""
i = 0
for i in ans:
ss += i
print(ss)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,487 |
s185083403 | p04030 | u469953228 | 1570940585 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | 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,488 |
s684056073 | p04030 | u517099533 | 1570927038 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 311 | s = list(input())
ans = ""
add = ""
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]
if len(ans) == 0:
for i in range(len(s)):
if s[i] != "B":
add = s[i]
ans = add
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,489 |
s536050873 | p04030 | u512138205 | 1570890448 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 166 | ans = ''
for c in input():
if c == '0':
ans += '0'
elif c == '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,490 |
s568580340 | p04030 | u625741705 | 1570846814 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | S = input()
s = ""
for c in S:
if(c == '0'):
s += '0'
elif(c == '1'):
s += '1'
elif(c == '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,491 |
s495213939 | p04030 | u263830634 | 1570840986 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | s = list(input())
ans = []
for i in s:
if i != 'B':
ans.append(i)
else:
if ans == []:
pass
else:
ans.pop()
print (*ans, sep = '') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,492 |
s835092250 | p04030 | u654558363 | 1570839675 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 235 |
if __name__ == "__main__":
word = input()
res = []
for letter in word:
if letter == 'B':
if len(res) != 0:
res.pop()
else:
res.append(letter)
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,493 |
s151655173 | p04030 | u853185302 | 1570765548 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | s = input()
disp = []
for i in s:
if i != "B":
disp.append(i)
else:
if len(disp) != 0:
disp.pop(-1)
print("".join(disp)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,494 |
s977174055 | p04030 | u594690363 | 1570764222 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 114 | n = input()
l = ''
for i in n:
c = 0
if i == '1' or i == '0':
l += i
else:
l = l[:len(l)-1]
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,205,495 |
s294247909 | p04030 | u066455063 | 1570758717 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 227 | s = list(input())
ans = []
for i in range(len(s)):
if s[i] == "0":
ans.append(0)
elif s[i] == "1":
ans.append(1)
elif s[i] == "B":
if ans != []:
ans.pop()
print(*ans, sep="")
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,496 |
s227672441 | p04030 | u391059484 | 1570681608 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 149 | s = input()
str1 = ''
for i in s:
if i == '0':
str1 = str1 + '0'
elif i == '1':
str1 = str1 +'1'
else:
str1 = str1[:-1]
print(str1) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,497 |
s552845268 | p04030 | u868600519 | 1570629092 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 111 | import re
s = input()
while 'B' in s:
s = re.sub(r'[01]B', '', s)
s = re.sub(r'^B+', '', s)
print(s)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,498 |
s998480347 | p04030 | u868600519 | 1570628952 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 111 | import re
s = input()
while 'B' in s:
s = re.sub(r'^B+', '', s)
s = re.sub(r'[01]B', '', s)
print(s)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,499 |
s891613690 | p04030 | u868600519 | 1570628472 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 121 | import re
s = input()
while re.search(r'B', s):
s = re.sub(r'^B+', '', s)
s = re.sub(r'[01]B', '', s)
print(s)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,500 |
s475507104 | p04030 | u172569352 | 1570627950 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 119 | s = input()
b = []
for i in s:
if i != 'B':
b.append(i)
elif b:
b.pop()
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,501 |
s070548281 | p04030 | u172569352 | 1570627860 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 145 | s = input()
b = []
for i in s:
if i == 'B':
if len(b) != 0:
b.pop()
else:
b.append(i)
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,502 |
s248897331 | p04030 | u594244257 | 1570627566 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 172 | ### 2019/10/09
### 自由群
s = input()
ret = []
for key in s:
if key == 'B':
if ret: ret.pop()
else:
ret.append(key)
print(''.join(ret)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,503 |
s710667303 | p04030 | u891635666 | 1570618804 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | s = input().rstrip()
res = []
for c in s:
if c != 'B':
res.append(c)
else:
if len(res) > 0:
res.pop()
print(''.join(res)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,504 |
s007479987 | p04030 | u931489673 | 1570600305 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 94 | import re
s=input()
while 'B' in s:
s=s.lstrip('B')
s=re.sub(r'[0,1]B','',s)
print(s)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,505 |
s273973784 | p04030 | u545368057 | 1570554925 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | S = input()
a = []
for s in S:
if s == "B" :
if len(a)!=0:
a.pop()
else:
a.append(s)
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,506 |
s170445657 | p04030 | u328364772 | 1570552466 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 179 | s = input()
ans = []
for _ in s:
if _ == '0':
ans.append('0')
elif _ == '1':
ans.append('1')
elif ans != []:
ans.pop(-1)
print(*ans, sep='')
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,507 |
s986291440 | p04030 | u008357982 | 1570532574 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 149 | s=input()
a=[]
for i in range(len(s)):
if s[i]=='B':
if len(a)>0:
a.pop(-1)
else:
a.append(s[i])
print(*a,sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,508 |
s529069675 | p04030 | u615817983 | 1570520482 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | S = input()
ans = list()
for s in S:
if s != 'B':
ans.append(s)
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,509 |
s041681465 | p04030 | u910756197 | 1570495341 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 129 | s = input()
w = ""
for k in s:
if k == "B" and len(w) > 0:
w = w[:-1]
if k in ["0", "1"]:
w += k
print(w) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,510 |
s574535637 | p04030 | u597455618 | 1570346403 | Python | Python (3.4.3) | py | Accepted | 22 | 3316 | 93 | import re
s = input()
for i in range(4):
s = re.sub("[0-1]B","",s)
print(s.replace("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,511 |
s852544419 | p04030 | u231685196 | 1570337171 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | s = input()
ans = ""
for c in s:
if c == "B":
if len(ans) != 0:
ans = ans[:-1]
else:
ans += c
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,512 |
s804163132 | p04030 | u597047658 | 1570303661 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 202 | S = input()
output = ''
for s in S:
if s == '0':
output += '0'
elif s == '1':
output += '1'
else:
if len(output) != 0:
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,513 |
s878614219 | p04030 | u518987899 | 1570256380 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 129 | S = input().strip()
ans = ''
for c in S:
if c == 'B':
if len(ans) > 0:
ans = ans[:-1]
else:
ans += c
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,514 |
s260786854 | p04030 | u079672271 | 1570245660 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 187 | line = ''
s = input()
s_list = list(s)
for i in s_list:
if len(line) > 0 and i == 'B':
line = line[:-1]
elif i == '0':
line += '0'
elif i == '1':
line += '1'
print(line) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,515 |
s321306469 | p04030 | u672898046 | 1570242436 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | s = input()
r = []
for i in s:
if i == "B":
if r:
del r[-1]
else:
r.append(i)
print(*r, 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,516 |
s400307097 | p04030 | u672898046 | 1570241932 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 192 | s = input()
l = list(s)
r = []
for i in l:
if i == "0":
r.append("0")
elif i =="1":
r.append("1")
else:
if r == []:
continue
else:
del r[-1]
print(*r, 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,517 |
s643119973 | p04030 | u403986473 | 1570239264 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 142 | bun = input()
res = ''
for i in range(len(bun)):
if bun[i] != 'B':
res = res + bun[i]
else:
res = res[0:-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,518 |
s059993349 | p04030 | u873059840 | 1570128205 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 174 | N = input()
answer=[]
for i in range (len(N)):
if(N[i] == "B"):
if(answer):
answer.pop()
else:
answer.append(N[i])
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,519 |
s558887225 | p04030 | u945181840 | 1570119568 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 182 | s = input()
ans = []
for i in s:
if i == '0':
ans.append(i)
elif i == '1':
ans.append(i)
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,520 |
s713399291 | p04030 | u580093517 | 1570038057 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 141 | S = input()
stack = []
for s in S:
if s != "B":
stack.append(s)
elif not stack:pass
else:stack.pop()
print(*stack,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,521 |
s425849476 | p04030 | u396495667 | 1570037990 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 170 | s =list(input())
l=[]
for i in range(len(s)):
if s[i] =='0':
l.append('0')
elif s[i] =='1':
l.append('1')
elif s[i] =='B':
l = l[0:-1]
print(''.join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,522 |
s810422882 | p04030 | u045909335 | 1570029442 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | S = input()
ans = []
for s in S:
if s == 'B':
if ans:
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,523 |
s444225883 | p04030 | u856957183 | 1569983104 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 324 | input_list = input()
out_list=list()
for i in range(len(input_list)):
if input_list[i] == "0":
out_list.append('0')
i +=1
elif input_list[i] == "1":
out_list.append('1')
i +=1
else:
if not len(out_list)==0:
out_list.pop()
for j in out_list:
print(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,524 |
s225042681 | p04030 | u821989875 | 1569980045 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 265 | # coding: utf-8
orders = list(input())
out_list = []
for od in orders:
if od == "0":
out_list.append("0")
elif od == "1":
out_list.append("1")
elif od == "B":
if len(out_list) != 0:
out_list.pop(-1)
out_str = "".join(out_list)
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,205,525 |
s187364808 | p04030 | u089376182 | 1569897963 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 171 | s = input()
ans = ''
for str_i in s:
if str_i == '0':
ans += '0'
elif str_i == '1':
ans += '1'
elif str_i == 'B':
ans = ans[:len(ans)-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,526 |
s178375861 | p04030 | u824326335 | 1569825785 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | ans=[]
for s in input():
if s == "B" and len(ans):
ans = ans[:-1]
elif s!="B":
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,527 |
s737300811 | p04030 | u153902122 | 1569819048 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 220 | s = input()
res=[]
for i in s:
if i=='0':
res.append('0')
if i=='1':
res.append('1')
if i=="B":
if len(res)==0:
pass
else:
res.pop()
print(''.join(res)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,528 |
s963618440 | p04030 | u747602774 | 1569782761 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 191 | S=list(input())
ans=[]
for s in S:
if s=='0':
ans.append('0')
elif s=='1':
ans.append('1')
else:
if ans==[]:
ans==[]
else:
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,529 |
s710502504 | p04030 | u115188504 | 1569776558 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 188 | 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,530 |
s604203924 | p04030 | u377989038 | 1569766657 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 194 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "B" and ans != "":
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,205,531 |
s302247360 | p04030 | u223904637 | 1569718365 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 171 | s=list(input())
ans=[]
for i in range(len(s)):
if s[i]=='B' and len(ans)>0:
ans.pop(-1)
elif s[i]!='B':
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,532 |
s264019122 | p04030 | u464912173 | 1569717944 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 136 | s = input()
ans =''
for i in s:
if i =='1':
ans+='1'
elif i=='0':
ans+='0'
elif i=='B':
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,533 |
s075677252 | p04030 | u291766461 | 1569711169 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | s = input()
ans = ""
for c in s:
if c == "0":
ans += "0"
elif c == "1":
ans += "1"
elif c == "B":
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,534 |
s026763153 | p04030 | u502028059 | 1569624943 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 181 | s = input()
ans = ''
for i in s:
if i == '0':
ans += '0'
elif i == '1':
ans += '1'
elif 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,205,535 |
s623592085 | p04030 | u605712324 | 1569622480 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | S = input()
result = []
for ch in S:
if ch == 'B':
if result: result.pop()
continue
result.append(ch)
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,536 |
s073417127 | p04030 | u397942996 | 1569615444 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 78 | 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,537 |
s806717437 | p04030 | u385244248 | 1569483086 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 205 | s = list(input())
a = []
for i in range(len(s)):
if s[i] == "B" and a != []:
del a[-1]
elif s[i] == "B" and a == []:
continue
else:
a.append(str(s[i]))
print("".join(a)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,538 |
s244093407 | p04030 | u239342230 | 1569475879 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 143 | S=input()
ans=[]
for s in S:
if s=='B':
if len(ans)!=0:
ans.pop(-1)
else:
ans.append(s)
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,539 |
s302392349 | p04030 | u764105813 | 1569467860 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 203 | s = input()
displayed_s = ''
for c in s:
if c == '0':
displayed_s += c
elif c == '1':
displayed_s += c
elif c == 'B':
displayed_s = displayed_s[:-1]
print(displayed_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,540 |
s280253784 | p04030 | u396495667 | 1569429842 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 96 | s = input()
ans =''
for i in s:
if i =='B':
ans = ans[0:-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,541 |
s458694520 | p04030 | u214122599 | 1569379422 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 154 | key = list(input())
k = []
for n in key:
if n == "0" or n == "1":
k.append(n)
elif len(k) != 0:
k.pop()
else:
pass
print("".join(k)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,542 |
s476958440 | p04030 | u893063840 | 1569330017 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 183 | # -*- coding: utf-8 -*-
s = input()
ans = []
for ele in s:
if ele == "B":
if ans:
ans.pop()
else:
ans.append(ele)
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,543 |
s035146584 | p04030 | u723590269 | 1569327659 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 176 | s=str(input())
out=[]
for i in range(len(s)):
if s[i] != "B":
out.append(s[i])
elif s[i] == "B" and len(out) >0:
out.pop(len(out)-1)
print("".join(out)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,544 |
s450506252 | p04030 | u069129582 | 1569300952 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 170 | s=input()
a=[]
for i in s:
if i=='0':
a.append(i)
elif i=='1':
a.append(i)
else:
if len(a)!=0:
a.pop(-1)
print(''.join(a)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,545 |
s563178011 | p04030 | u556371693 | 1569273972 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 192 | s=input()
ans=''
for _ in range(len(s)):
if s[_]=="0":
ans+='0'
elif s[_]=='1':
ans+='1'
else:
if len(ans)==0:
continue
else:
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,546 |
s516170149 | p04030 | u953753178 | 1569240319 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | res = ''
for x in input():
if x == 'B':
res = res[:-1]
else:
res += x
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,547 |
s674095375 | p04030 | u404794295 | 1569190352 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 187 | s=input()
text=""
for i in range(len(s)):
if s[i]=="0":
text+="0"
elif s[i]=="1":
text+="1"
else:
if text!=None:
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,205,548 |
s912171935 | p04030 | u661980786 | 1569183216 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 223 | s = list(input())
len_s = len(s)
output = []
for i in range(0,len_s):
if s[i] == "B":
try:
output.pop(-1)
except:
pass
else:
output.append(s[i])
print("".join(output)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,549 |
s935572105 | p04030 | u819710930 | 1569098617 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 170 | s=list(input())
ans=[]
while s:
x=s.pop(0)
if x=='0': ans.append('0')
elif x=='1': ans.append('1')
elif x=='B' and len(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,550 |
s355824159 | p04030 | u924374652 | 1569034268 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 176 | s = list(input())
result = ""
for one_command in s:
if one_command == "B":
if len(result) != 0:
result = result[:-1]
else:
result += one_command
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,551 |
s558779808 | p04030 | u296518383 | 1569030402 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 178 | import collections
S=input()
N=len(S)
D=collections.deque([])
for i in range(N):
if S[i]=="B":
if len(D):
D.pop()
else:
D.append(S[i])
print("".join(list(D))) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,552 |
s254801056 | p04030 | u813371068 | 1568946187 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 195 | s = input()
ans = ''
for i in range(len(s)):
if s[i] == 'B' and ans != '':
ans = ans[:-1]
elif s[i] == 'B' and ans == '':
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,205,553 |
s156265196 | p04030 | u396495667 | 1568916936 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 96 | s = input()
ans =''
for i in s:
if i =='B':
ans = ans[0:-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,554 |
s605816827 | p04030 | u062484507 | 1568911554 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 111 | S = input()
ans = ""
for i in S:
if i == "B":
ans = ans[0:-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,555 |
s075894000 | p04030 | u062484507 | 1568910790 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | S = input()
ans = ""
for i in S:
if ans == "" and i == "B":
pass
elif i == "B":
ans = ans[0:-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,556 |
s873591870 | p04030 | u474925961 | 1568903073 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 161 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
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,557 |
s686517424 | p04030 | u474925961 | 1568902982 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 161 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
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,558 |
s094027299 | p04030 | u580093517 | 1568843085 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 77 | 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,559 |
s066398040 | p04030 | u608355135 | 1568834314 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 100 | import re
t = input()
while "B" in t:
t = t.lstrip("B")
t = re.sub('[0,1]B','', t)
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,560 |
s600902345 | p04030 | u699699071 | 1568773768 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 206 | s=input()
result=[]
for i in s:
if i=="0":
result.append(i)
elif i=="1":
result.append(i)
elif i=="B":
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,561 |
s901543636 | p04030 | u670180528 | 1568771673 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 52 | a=""
for x in input():a=(a+x,a[:-1])[x>"A"]
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,562 |
s923379071 | p04030 | u670180528 | 1568771623 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 56 | i=input();a=""
for x in i:a=(a+x,a[:-1])[x>"A"]
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,563 |
s107490653 | p04030 | u670180528 | 1568771383 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 66 | i=input();a=""
for x in i:
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,205,564 |
s758822982 | p04030 | u460737328 | 1568682591 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | S = input()
ans = ""
for s in S:
if s in {'0', '1'}:
ans += s
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,565 |
s102359409 | p04030 | u354916249 | 1568672514 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 105 | s = []
for i in input():
if i == 'B':
s = s[:-1]
else:
s += i
print("".join(s)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,566 |
s756032508 | p04030 | u354916249 | 1568672284 | Python | Python (3.4.3) | py | Accepted | 24 | 3316 | 208 | from collections import deque
s = input()
ans = deque()
for i in s:
if i == 'B':
if ans != deque([]):
ans.pop()
else:
ans.append(i)
ans = "".join(list(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,567 |
s263774045 | p04030 | u152638361 | 1568641427 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 399 | s = list(input())
for i in range(len(s)):
if i == 0 and s[i] == "B":
s[i] = ""
elif s[i] == "B":
s[i] = ""
flg = 0
back = 1
while True:
if s[i-back] == "":
back += 1
elif s[i-back] != "":
s[i-back] = ""
... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,568 |
s850560230 | p04030 | u760767494 | 1568600771 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 195 | s = input()
a = ""
s_len = len(s)
for i in range(s_len):
if s[i] == "0" or s[i] == "1":
a = a + s[i]
else:
if a:
# print("OK")
a = a[0:-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,569 |
s320301138 | p04030 | u114933382 | 1568514135 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 157 | data = input()
x = ""
for i in range(len(data)):
if data[i] == "B":
if x != "":
x = x[0:-1]
else:
x += data[i]
print(x) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,570 |
s951137337 | p04030 | u757584836 | 1568499486 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 180 | s = input()
a = ""
for i in range(0, len(s)):
if s[i] == "0":
a += "0"
elif s[i] == "1":
a += "1"
elif s[i] == "B" and len(a) != 0:
b = a[0:-1]
a = b
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,571 |
s062769365 | p04030 | u053856575 | 1568474435 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 148 | 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,205,572 |
s752281855 | p04030 | u488127128 | 1568467522 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 170 | S = input()
a = []
for s in S:
if s=='0' or s=='1':
a.append(s)
else:
try:
a.pop()
except:
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,205,573 |
s522269317 | p04030 | u488127128 | 1568467448 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 109 | S = input()
a = ''
for s in S:
if s=='0' or s=='1':
a += s
else:
a = a[:-1]
print(a)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,574 |
s502513960 | p04030 | u871596687 | 1568417711 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 209 | s = list(input())
S = []
for i in range(len(s)):
if s[i] == "0":
S += s[i]
elif s[i] == "1":
S += s[i]
elif len(S) == 0:
pass
else:
del S[-1]
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,575 |
s704490540 | p04030 | u252828980 | 1568395177 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 217 | s = list(input())
ans = []
for i in range(len(s)):
if s[i] != "B":
ans.append(s[i])
elif s[i] == "B":
if len(ans) > 0:
ans.pop()
else:
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,576 |
s730874719 | p04030 | u502304480 | 1568235758 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 192 | s = list(input())
l = len(s)
ans = []
for i in range(l):
if len(ans) > 0 and s[i] == 'B':
ans.pop()
continue
elif s[i] == 'B':
continue
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,577 |
s878520434 | p04030 | u469254913 | 1568171684 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 236 | s = str(input())
res = ''
slist = []
for i in range(len(s)):
if s[i] == 'B':
if slist != []:
slist = slist[:-1]
else:
slist.append(s[i])
for i in range(len(slist)):
res += slist[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,205,578 |
s134353079 | p04030 | u015187377 | 1568170600 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 160 | s=input()
l=[]
for i in s:
if i=='0':
l.append('0')
elif i=='1':
l.append('1')
elif i=='B':
if len(l)>=1:
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,205,579 |
s222882634 | p04030 | u791489811 | 1568165259 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 169 | s=input()
ans=''
for i in range(len(s)):
if s[i]=='0':
ans=ans+'0'
elif s[i]=='1':
ans=ans+'1'
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,580 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.