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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s524470050 | p04030 | u473905774 | 1599248486 | Python | PyPy3 (7.3.0) | py | Accepted | 68 | 61792 | 133 | s = input()
new_s = ""
for i in s:
if i == "0" or i == "1":
new_s += i
else:
new_s = new_s[:-1]
print(new_s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,281 |
s696386157 | p04030 | u035210736 | 1599237934 | Python | Python (3.8.2) | py | Accepted | 41 | 9064 | 106 | s = input()
a = ""
for i in range(len(s)):
if s[i] == "B":
a = a[:-1]
else:
a += s[i]
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,282 |
s755017588 | p04030 | u780529129 | 1599234756 | Python | PyPy3 (7.3.0) | py | Accepted | 61 | 61812 | 190 | S = list(input())
Ans = []
for s in S:
if s == "0":
Ans.append("0")
elif s == "1":
Ans.append("1")
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,204,283 |
s159612593 | p04030 | u535010493 | 1599229393 | Python | Python (3.8.2) | py | Accepted | 26 | 9164 | 213 | s = input()
lis = []
for c in s:
if c == 'B':
if len(lis):
lis = lis[:-1]
else:
continue
else:
lis.append(int(c))
for i in lis:
print(i, end="")
print() | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,284 |
s013710514 | p04030 | u620846115 | 1599226195 | Python | Python (3.8.2) | py | Accepted | 27 | 8792 | 118 | n = input()
a = ""
for i in n:
if i =="0":
a+=i
elif i =="1":
a+=i
elif i =="B":
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,204,285 |
s569483848 | p04030 | u655048024 | 1599179211 | Python | Python (3.8.2) | py | Accepted | 24 | 8836 | 143 | s = str(input())
ans = ""
for i in range(len(s)):
if(s[i]!="B"):
ans += s[i]
else:
if(ans != ""):
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,286 |
s680146579 | p04030 | u314188085 | 1599173256 | Python | Python (3.8.2) | py | Accepted | 29 | 8916 | 146 | s = input()
ans = []
for i in s:
if i=='B':
if ans != []:
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,204,287 |
s565681582 | p04030 | u016843859 | 1599155765 | Python | Python (3.8.2) | py | Accepted | 23 | 9024 | 236 | s=list(input())
ans=list()
for i in s:
if i=="0":
ans.append(0)
elif i=="1":
ans.append(1)
else:
try:
ans.pop(-1)
except:
pass
for i in ans:
print(i,end="")
print() | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,288 |
s393798075 | p04030 | u165388538 | 1599136379 | Python | Python (3.8.2) | py | Accepted | 26 | 9032 | 213 | strs = []
s = list(input())
for num in s:
if num == "0":
strs.append("0")
elif num == "1":
strs.append("1")
elif num == "B" and strs:
strs.pop(len(strs)-1)
print("".join(strs)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,289 |
s698150728 | p04030 | u156815136 | 1599136356 | Python | Python (3.8.2) | py | Accepted | 41 | 10396 | 1,158 | #from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations,permutations,accumulate, product # (string,3) 3回
#from collections import deque
from collections import deque,defaultdict,Cou... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,290 |
s297441003 | p04030 | u888092736 | 1599135543 | Python | Python (3.8.2) | py | Accepted | 29 | 9016 | 140 | S = input()
ans = []
for c in S:
if c == "B":
if ans:
ans.pop()
else:
ans.append(c)
print("".join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,291 |
s150653651 | p04030 | u186838327 | 1599135535 | Python | PyPy3 (7.3.0) | py | Accepted | 71 | 61816 | 208 | s = str(input())
ans = []
for i in range(len(s)):
if s[i] == '0':
ans.append('0')
elif s[i] == '1':
ans.append('1')
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,204,292 |
s116422573 | p04030 | u815763296 | 1599134219 | Python | Python (3.8.2) | py | Accepted | 27 | 9392 | 253 | from collections import deque
S = input()
L = len(S)
d = deque()
for i in range(L):
if S[i] == "0":
d.append("0")
elif S[i] == "1":
d.append("1")
else:
if len(d) != 0:
d.pop()
ans = ''.join(d)
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,204,293 |
s735256162 | p04030 | u843175622 | 1599133996 | Python | Python (3.8.2) | py | Accepted | 25 | 8992 | 149 | s = input()
ans = []
for c in s:
if c == 'B':
if len(ans) > 0:
ans.pop()
else:
ans.append(c)
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,294 |
s009218000 | p04030 | u670567845 | 1599133382 | Python | Python (3.8.2) | py | Accepted | 24 | 9080 | 178 | s = list(input())
ans = []
for t in s:
if t == "0":
ans.append("0")
elif t == "1":
ans.append("1")
elif t == "B" and ans != []:
ans.pop(-1)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,295 |
s641739924 | p04030 | u644907318 | 1599133141 | Python | PyPy3 (7.3.0) | py | Accepted | 64 | 61804 | 150 | s = input().strip()
x = ""
for i in range(len(s)):
if s[i]!="B":
x = x+s[i]
else:
if len(x)>0:
x = x[:-1]
print(x) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,296 |
s358250202 | p04030 | u241159583 | 1599133093 | Python | Python (3.8.2) | py | Accepted | 27 | 8948 | 124 | s = input()
ans = ""
for i in s:
if i == "B":
if ans != "": 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,204,297 |
s537276893 | p04030 | u054473438 | 1599105789 | Python | Python (3.8.2) | py | Accepted | 30 | 9108 | 113 | S = input()
ans = ''
for s in S:
if s == 'B':
if len(ans) != 0:
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,204,298 |
s304892618 | p04030 | u074220993 | 1599087755 | Python | Python (3.8.2) | py | Accepted | 25 | 8952 | 185 | S = input()
output = ''
for s in S:
if s == '0' or s == '1':
output += s
else:
l = len(output)
if l > 0:
output = output[:l-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,204,299 |
s735866255 | p04030 | u161134623 | 1599024487 | Python | Python (3.8.2) | py | Accepted | 26 | 8984 | 191 | s = input()
ans = ""
for i in s:
if i == "0" or i == "1":
ans += i
elif i == "B" and ans == "":
continue
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,204,300 |
s101530467 | p04030 | u940652437 | 1598992464 | Python | Python (3.8.2) | py | Accepted | 29 | 8972 | 145 | n = input()
s=""
for i in range(len(n)):
if(n[i]=="B"):
if(s != ""):
s=s[:-1]
else:
s+=n[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,204,301 |
s512314318 | p04030 | u411923565 | 1598979839 | Python | Python (3.8.2) | py | Accepted | 31 | 9392 | 240 | #33 B - バイナリハックイージー
from collections import deque
S = input()
ans = deque([])
for s in S:
if s == 'B' and len(ans) >= 1:
ans.pop()
elif s == '0' or s == '1':
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,204,302 |
s683077326 | p04030 | u460745860 | 1598908860 | Python | Python (3.8.2) | py | Accepted | 31 | 9188 | 176 | from collections import deque
S = input()
q = deque()
for s in S:
if s == "B":
if len(q) != 0:
q.pop()
else:
q.append(s)
print("".join(q))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,303 |
s428825175 | p04030 | u980753441 | 1598834332 | Python | Python (3.8.2) | py | Accepted | 24 | 9080 | 164 | str = input()
ans = list()
for s in str:
if s == 'B':
if ans:
ans.pop()
continue
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,204,304 |
s611455189 | p04030 | u909716307 | 1598834013 | Python | Python (3.8.2) | py | Accepted | 27 | 8956 | 109 | s=''
for c in input():
if c=='B':
if s!='':
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,204,305 |
s937442902 | p04030 | u506422818 | 1598762637 | Python | Python (3.8.2) | py | Accepted | 30 | 9016 | 114 | s = ""
for i in (input()):
if i in ["0", "1"]:
s = s + i
else:
if len(s) >0:
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,204,306 |
s981245096 | p04030 | u628335443 | 1598704248 | Python | Python (3.8.2) | py | Accepted | 31 | 9292 | 186 | from collections import deque
S = input()
d = deque()
for s in S:
if s == 'B':
if len(d) > 0:
d.pop()
else:
d.append(s)
print("".join(map(str, 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,204,307 |
s603005834 | p04030 | u821588465 | 1598670565 | Python | Python (3.8.2) | py | Accepted | 30 | 8992 | 130 | X = input()
text = []
for i in X:
if i == 'B':
text = text[:-1]
else:
text.append(i)
print(*text, 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,204,308 |
s063083497 | p04030 | u397496203 | 1598669270 | Python | PyPy3 (7.3.0) | py | Accepted | 62 | 61964 | 505 | # https://atcoder.jp/contests/abc043/tasks/abc043_b
import sys
# sys.setrecursionlimit(100000)
def input():
return sys.stdin.readline().strip()
def input_int():
return int(input())
def input_int_list():
return [int(i) for i in input().split()]
def main():
S = input()
ans = []
for s in 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,204,309 |
s111839362 | p04030 | u607563136 | 1598653171 | Python | Python (3.8.2) | py | Accepted | 27 | 8940 | 181 | S = input()
disp = []
for s in S:
if s=="B":
if not disp:
continue
else:
disp.pop()
else:
disp.append(s)
print("".join(disp)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,310 |
s935538015 | p04030 | u589969467 | 1598649938 | Python | Python (3.8.2) | py | Accepted | 25 | 8968 | 192 | s = str(input())
ans = ''
for key in s:
if '0' == key:
ans += '0'
elif '1' == key:
ans += '1'
else:
if len(ans) != 0:
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,311 |
s871740648 | p04030 | u164776089 | 1598649643 | Python | Python (3.8.2) | py | Accepted | 26 | 9012 | 244 | s = str(input())
a = []
for i in s:
if i == '0':
a.append('0')
elif i == '1':
a.append('1')
elif i == 'B':
if len(a) ==0:
continue
else:
del a[-1]
print(''.join(a)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,312 |
s468882726 | p04030 | u668271522 | 1598553333 | Python | Python (3.8.2) | py | Accepted | 31 | 9100 | 122 | s = input()
res = ""
for i in s:
if i == "0" or i == "1":
res += i
else:
res = res[:-1]
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,313 |
s414708276 | p04030 | u794448346 | 1598542115 | Python | Python (3.8.2) | py | Accepted | 25 | 9036 | 143 | s = input()
ans = []
for i in s:
if i == "0" or i == "1":
ans.append(i)
elif ans != []:
ans.pop(-1)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,314 |
s110154331 | p04030 | u787059958 | 1598495315 | Python | Python (3.8.2) | py | Accepted | 27 | 9100 | 213 | s = input()
output = ''
for i in s:
if i == '0':
output += '0'
elif i == '1':
output += '1'
elif i == 'B' and len(output) != 0:
output = output[:len(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,204,315 |
s539485506 | p04030 | u896588506 | 1598477615 | Python | PyPy3 (7.3.0) | py | Accepted | 91 | 74556 | 574 | import bisect,collections,copy,itertools,math,string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def main():
s = 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,204,316 |
s225580904 | p04030 | u677393869 | 1598476144 | Python | Python (3.8.2) | py | Accepted | 30 | 9048 | 253 | input_str = list(input())
ans = ''
for i in input_str:
if i == '0':
ans = ans +'0'
elif i == '1':
ans = ans + '1'
elif i == 'B':
if ans == None:
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,204,317 |
s739719739 | p04030 | u997134361 | 1598464833 | Python | Python (3.8.2) | py | Accepted | 28 | 9032 | 117 | s = input()
res = ""
for c in s:
if c != "B":
res = res + c
else:
res = res[:-1]
print(res)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,318 |
s680019141 | p04030 | u894694822 | 1598439984 | Python | PyPy3 (7.3.0) | py | Accepted | 69 | 61836 | 149 | s=list(input())
x=[]
for i in s:
if i=="0" or i=="1":
x.append(i)
else :
if not x:
pass
else:
del x[-1]
print("".join(x)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,319 |
s744087256 | p04030 | u120651703 | 1598385568 | Python | Python (3.8.2) | py | Accepted | 27 | 9032 | 202 | s = input()
str = ''
for char in s:
if char == '0' or char == '1':
str += char
elif char == 'B':
if str:
str = str[:-1]
else:
continue
print(str) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,320 |
s461506913 | p04030 | u642528832 | 1598378406 | Python | Python (3.8.2) | py | Accepted | 27 | 9044 | 158 | s = input()
ans = []
for i in range(len(s)):
if s[i] == '0' or s[i]=='1':
ans.append(s[i])
else:
ans = ans[:-1]
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,321 |
s426053388 | p04030 | u863723142 | 1598375286 | Python | Python (3.8.2) | py | Accepted | 25 | 9012 | 379 | str_line = input()
str_line2 = list(str_line)
#print(str_line2)
length = len(str_line2)
line = []
for i in range(length):
if (str_line2[i] == "1")or(str_line2[i] == "0"):
line.append(str_line2[i])
#print(line)
else:
if len(line) != 0:
del line[-1]
#print... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,322 |
s455251596 | p04030 | u953379577 | 1598284345 | Python | Python (3.8.2) | py | Accepted | 28 | 8964 | 249 | s = list(input())
ans = []
for i in s:
if i == "1":
ans.append(1)
elif i == "0":
ans.append(0)
else:
if len(ans) == 0:
continue
else:
del ans[-1]
for i in ans:
print(i,end = "") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,323 |
s961107313 | p04030 | u582084082 | 1598161838 | Python | Python (3.8.2) | py | Accepted | 29 | 8956 | 171 | s = str(input())
a = ''
for i in s:
if i == '0':
a += '0'
elif i == '1':
a += '1'
else:
if len(a) != 0:
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,204,324 |
s960186742 | p04030 | u763177133 | 1598156459 | Python | Python (3.8.2) | py | Accepted | 29 | 9040 | 160 | s = input()
ans = []
for c in s:
if c != 'B':
ans += c
else:
if len(ans) > 0:
del ans[-1]
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,325 |
s215493490 | p04030 | u771541471 | 1598151487 | Python | Python (3.8.2) | py | Accepted | 36 | 9032 | 188 | s=input()
ans=""
for i in range(len(s)):
x=s[i]
if x=="0":
ans+="0"
elif x=="1":
ans+="1"
else:
if len(ans)!=0:
ans=ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,326 |
s235860724 | p04030 | u468972478 | 1598143957 | Python | Python (3.8.2) | py | Accepted | 27 | 9088 | 112 | s = input()
a = ""
for i in s:
if i == "1" or i == "0":
a += i
else:
if a:
a = a[:-1]
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,327 |
s691255531 | p04030 | u272457181 | 1598139318 | Python | Python (3.8.2) | py | Accepted | 29 | 9100 | 160 | s = input()
a = []
for i in list(s):
if i == 'B':
if a == []:
a == []
else:
a.pop(-1)
else:
a.append(i)
b = ''.join(a)
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,204,328 |
s221863186 | p04030 | u653837719 | 1598132273 | Python | PyPy3 (7.3.0) | py | Accepted | 60 | 61740 | 197 | s = input()
res = []
for c in s:
if c == '0':
res.append('0')
elif c == '1':
res.append('1')
else:
if len(res) > 0:
del res[-1]
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,204,329 |
s616867489 | p04030 | u432453907 | 1598124154 | Python | Python (3.8.2) | py | Accepted | 29 | 9100 | 131 | S=str(input())
ans=""
for i in range(len(S)):
if S[i]=="B":
ans=ans[:len(ans)-1]
else:
ans+=S[i]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,330 |
s410060019 | p04030 | u707030679 | 1598121860 | Python | Python (3.8.2) | py | Accepted | 30 | 8968 | 165 | s=input()
ans=""
for i in range(len(s)):
if s[i]=="B":
if len(ans)==0:
continue
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,204,331 |
s652963973 | p04030 | u955248595 | 1598082941 | Python | Python (3.8.2) | py | Accepted | 26 | 9004 | 177 | S = input()
I = []
for TS in S:
if TS=='0':
I.append('0')
elif TS=='1':
I.append('1')
elif TS=='B' and len(I)>=1:
del I[-1]
print(''.join(I)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,332 |
s553786269 | p04030 | u185948224 | 1598067815 | Python | Python (3.8.2) | py | Accepted | 27 | 8908 | 118 | s = input()
ans = ''
for a in s:
if a =='B':
if len(ans) > 0: ans = ans[:-1]
else: ans += a
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,333 |
s860071021 | p04030 | u477142306 | 1597992944 | Python | Python (3.8.2) | py | Accepted | 26 | 8996 | 218 | zla=list(input())
s=[]
for i in zla:
if i=='0':
s.append('0')
elif i=='1':
s.append('1')
elif i=='B':
if s==[]:
pass
else:
s.pop()
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,204,334 |
s223740579 | p04030 | u619557935 | 1597976752 | Python | PyPy3 (7.3.0) | py | Accepted | 64 | 61756 | 243 | S = input()
ans = []
for i in range(len(S)):
if S[i] == "0":
ans.append("0")
elif S[i] == "1":
ans.append("1")
else:
if len(ans) > 0:
del ans[-1]
ans_ = ""
for s in ans:
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,204,335 |
s617461824 | p04030 | u814886720 | 1597944083 | Python | Python (3.8.2) | py | Accepted | 30 | 9084 | 215 | s=[]
a=list(input())
for i in a:
if i=='0':
s.append('0')
elif i=='1':
s.append('1')
else:
if len(s)==0:
pass
else:
s.pop()
b="".join(s)
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,204,336 |
s593964199 | p04030 | u070423038 | 1597886323 | Python | Python (3.8.2) | py | Accepted | 23 | 9072 | 123 | r = []
for i in input():
if 'B' == i:
if r:
r.pop()
else:
r.append(i)
print(''.join(r)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,337 |
s393290888 | p04030 | u349449706 | 1597803885 | Python | PyPy3 (7.3.0) | py | Accepted | 69 | 61676 | 117 | s = list(map(str, input()))
t = ''
for i in s:
if i != 'B':
t += i
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,204,338 |
s744786343 | p04030 | u349449706 | 1597803615 | Python | PyPy3 (7.3.0) | py | Accepted | 65 | 61640 | 157 | s = list(map(str, input()))
t = []
for i in s:
if i != 'B':
t.append(i)
else:
if len(t) > 0:
t.pop(-1)
print(''.join(t))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,339 |
s633654456 | p04030 | u969708690 | 1597711950 | Python | Python (3.8.2) | py | Accepted | 30 | 9060 | 145 | S=list(input())
ans=str()
for i in S:
if i=="0":
ans+="0"
elif i=="1":
ans+="1"
else:
if ans!="":
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,340 |
s622229246 | p04030 | u070201429 | 1597703055 | Python | PyPy3 (7.3.0) | py | Accepted | 64 | 61740 | 178 | s = list(input())
ans = ''
for i in s:
if i == '0':
ans += '0'
elif i == '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,204,341 |
s164619123 | p04030 | u353919145 | 1597671472 | Python | Python (3.8.2) | py | Accepted | 26 | 9040 | 214 | x = input()
li = []
sz = 0
for i in x:
if (i == '0') or (i == '1'):
li.append(i)
sz += 1
else:
if sz > 0:
li.pop()
sz -= 1
for i in li:
print(i, end="")
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,342 |
s961079568 | p04030 | u793028948 | 1597671458 | Python | Python (3.8.2) | py | Accepted | 24 | 8964 | 214 | x = input()
li = []
sz = 0
for i in x:
if (i == '0') or (i == '1'):
li.append(i)
sz += 1
else:
if sz > 0:
li.pop()
sz -= 1
for i in li:
print(i, end="")
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,343 |
s424766759 | p04030 | u036104576 | 1597637414 | Python | Python (3.8.2) | py | Accepted | 31 | 9040 | 154 | S = input()
stack = []
for c in S:
if c == '0' or c == '1':
stack.append(c)
elif len(stack) > 0:
stack.pop()
print("".join(stack)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,344 |
s349735322 | p04030 | u172748267 | 1597479580 | Python | Python (3.8.2) | py | Accepted | 26 | 8968 | 182 | s=list(input())
ans=[]
for i in s:
if i=="0":
ans.append("0")
if i=="1":
ans.append("1")
if i=="B" and 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,204,345 |
s580737724 | p04030 | u190195462 | 1597460738 | Python | Python (3.8.2) | py | Accepted | 26 | 9108 | 308 | S = input()
Z = []
X = len(S)
i = 0
while i < X :
if S[i] == "0":
Z.append(0)
elif S[i] == "1":
Z.append(1)
elif S[i] == "B":
if len(Z)== 0:
pass
else:
Z.pop()
i += 1
i = 0
X = len(Z)
while i < X:
print(Z[i] , end ="")
i +=1 | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,346 |
s213002378 | p04030 | u190195462 | 1597460721 | Python | Python (3.8.2) | py | Accepted | 27 | 8976 | 308 | S = input()
Z = []
X = len(S)
i = 0
while i < X :
if S[i] == "0":
Z.append(0)
elif S[i] == "1":
Z.append(1)
elif S[i] == "B":
if len(Z)== 0:
pass
else:
Z.pop()
i += 1
i = 0
X = len(Z)
while i < X:
print(Z[i] , end ="")
i +=1 | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,347 |
s586264489 | p04030 | u202634017 | 1597459100 | Python | Python (3.8.2) | py | Accepted | 29 | 9040 | 182 | s = list(input())
ans = [""] * 10
ptr = 0
for c in s:
if c == "B":
ptr = max(0,ptr-1)
else:
ans[ptr] = c
ptr += 1
print("".join(ans[:ptr]))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,348 |
s424727367 | p04030 | u704102636 | 1597417982 | Python | Python (3.8.2) | py | Accepted | 30 | 9100 | 250 | com = list(input())
ans = []
for c in com:
if c == '0':
ans.append("0")
elif c == '1':
ans.append("1")
elif c == 'B':
if len(ans) == 0:
pass
else:
ans.pop()
a = "".join(ans)
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,204,349 |
s751640010 | p04030 | u813387707 | 1597415328 | Python | Python (3.8.2) | py | Accepted | 30 | 9088 | 144 | s = input()
temp = []
for c in s:
if c == "B":
if temp:
temp.pop()
else:
temp.append(c)
print("".join(temp)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,350 |
s121225614 | p04030 | u575956662 | 1597390677 | Python | Python (3.8.2) | py | Accepted | 30 | 9056 | 234 | s = list(input())
word = []
for i in range(len(s)):
if s[i] == "B":
if len(word) != 0:
del word[len(word)-1]
else:
word.append(s[i])
Ans = ""
for i in range(len(word)):
Ans += word[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,204,351 |
s409658785 | p04030 | u745514010 | 1597356865 | Python | Python (3.8.2) | py | Accepted | 29 | 8940 | 113 | s = input()
ans = ""
for ss in s:
if ss == "B":
ans = ans[:-1]
else:
ans += ss
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,204,352 |
s919779268 | p04030 | u555458045 | 1597343307 | Python | Python (3.8.2) | py | Accepted | 28 | 8988 | 122 | s = input()
l = []
for i in s:
if i != "B":
l.append(i)
else:
if l != []:
l.pop(-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,204,353 |
s465602819 | p04030 | u825429469 | 1597324564 | Python | Python (3.8.2) | py | Accepted | 27 | 9044 | 209 | S = input()
stack = []
for s in S:
if s == '0' or s == '1':
stack.append(s)
if s == 'B':
if not stack:
continue
else:
stack.pop()
print(''.join(stack)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,354 |
s401286332 | p04030 | u209275335 | 1597206433 | Python | Python (3.8.2) | py | Accepted | 31 | 8964 | 179 | s = input()
s = s[::-1]
news = ""
c = 0
for i in range(len(s)):
if s[i] == "B":
c += 1
elif c == 0:
news += s[i]
else:
c -= 1
print(news[::-1]) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,355 |
s411046518 | p04030 | u066869486 | 1597201569 | Python | Python (3.8.2) | py | Accepted | 28 | 9004 | 155 | x = str(input())
lst = []
for i in range(len(x)):
if x[i] == 'B':
if len(lst) >0:
lst.pop()
else:
lst.append(x[i])
print("".join(lst)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,356 |
s163916619 | p04030 | u166012301 | 1597200424 | Python | Python (3.8.2) | py | Accepted | 24 | 9088 | 131 | line = input()
answ = ''
for s in line:
if s != 'B':
answ += s
else:
answ = answ[:len(answ)-1]
print(answ)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,357 |
s885674704 | p04030 | u780698286 | 1597166729 | Python | Python (3.8.2) | py | Accepted | 32 | 8848 | 216 | s = list(input())
texit = []
for i in s:
if i == "0":
texit.append("0")
elif i == "1":
texit.append("1")
elif i == "B" and len(texit) != 0:
texit = texit[:-1]
print("".join(texit)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,358 |
s309884974 | p04030 | u740909619 | 1597118063 | Python | Python (3.8.2) | py | Accepted | 29 | 9112 | 334 | # B - バイナリハックイージー
def main():
s = list(input())
val = []
for i in s:
if len(val) == 0 and i == 'B':
continue
elif i == 'B':
val.pop(-1)
else:
val.append(i)
else:
print(''.join(val))
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,204,359 |
s739177301 | p04030 | u024340351 | 1597087220 | Python | Python (3.8.2) | py | Accepted | 35 | 9360 | 221 | S = str(input())
import collections
Q = collections.deque()
for i in range (0, len(S)):
if S[i] == 'B':
if len(Q) >= 1:
D = Q.pop()
else:
Q.append(S[i])
T = str()
while Q:
V = Q.popleft()
T=T+V
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,204,360 |
s356877696 | p04030 | u401686269 | 1597084098 | Python | Python (3.8.2) | py | Accepted | 27 | 8996 | 152 | s=input()
out=''
for i in range(len(s)):
if s[i] != 'B':
out += s[i]
continue
else:
if len(out):
out = out[:-1]
print(out) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,361 |
s554025536 | p04030 | u249987458 | 1597046100 | Python | Python (3.8.2) | py | Accepted | 26 | 9036 | 187 | s1 = str(input())
s = []
for i in s1:
if i == '0' or i == '1':
s.append(i)
else:
if 1 <= len(s):
s.pop(len(s)-1)
w = ""
for h in s:
w += h
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,204,362 |
s860803383 | p04030 | u519339498 | 1597035523 | Python | Python (3.8.2) | py | Accepted | 25 | 8968 | 184 | s=input()
ans=""
for i in range(len(s)):
if s[i]=="0":
ans+="0"
elif s[i]=="1":
ans+="1"
else:
if ans=="":
pass
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,204,363 |
s649682431 | p04030 | u739843002 | 1597031319 | Python | Python (3.8.2) | py | Accepted | 31 | 8936 | 184 | s = input()
ans = []
back = 0
for i in range(len(s)):
if s[-i-1] == "B":
back += 1
elif back:
back -= 1
else:
ans.insert(0, s[-i-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,204,364 |
s114514047 | p04030 | u124605948 | 1597031071 | Python | Python (3.8.2) | py | Accepted | 32 | 8844 | 149 | s = input()
while s.count("B") != 0:
if s[0] == "B":
s = s[1:]
else:
i = s.index("B")
s = s[:i-1] + s[i+1:]
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,365 |
s145875126 | p04030 | u444238096 | 1597010920 | Python | Python (3.8.2) | py | Accepted | 26 | 9092 | 117 | s = input()
for i in range(len(s)):
s=s.replace('0B', '')
s=s.replace('1B', '')
s=s.replace('B', '')
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,366 |
s122676615 | p04030 | u316603606 | 1597000046 | Python | Python (3.8.2) | py | Accepted | 27 | 9100 | 145 | S = input ()
s = ''
for i in S:
if i == '0':
s += i
elif i == '1':
s += i
elif i == 'B':
if s != '':
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,204,367 |
s609923098 | p04030 | u074220993 | 1596998142 | Python | Python (3.8.2) | py | Accepted | 25 | 9052 | 256 | s = input()
ans =[]
for i in range(len(s)):
if s[i] == "0":
ans.append(0)
elif s[i] == "1":
ans.append(1)
elif s[i] == "B":
if len(ans) != 0:
ans.pop()
for i in range(len(ans)):
print(ans[i], end="")
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,368 |
s472440540 | p04030 | u226779434 | 1596996148 | Python | Python (3.8.2) | py | Accepted | 28 | 8980 | 147 | s = input()
ans =[]
for i in s:
if i == "B":
if ans ==[]:
continue
else:
del ans[-1]
else:
ans += 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,204,369 |
s490498701 | p04030 | u303119576 | 1596980885 | Python | Python (3.8.2) | py | Accepted | 32 | 8744 | 122 | s=input()
stk=[]
for c in s:
if c in '01':
stk.append(c)
elif stk:
stk.pop()
print(''.join(stk)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,370 |
s043210241 | p04030 | u720721463 | 1596912725 | Python | PyPy3 (7.3.0) | py | Accepted | 82 | 61480 | 134 | s = input()
lis = []
for k in s:
if k == "B":
if len(lis) != 0:
lis.pop()
else:
lis.append(k)
print("".join(lis))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,371 |
s818985711 | p04030 | u697690147 | 1596860100 | Python | Python (3.8.2) | py | Accepted | 26 | 9012 | 212 | s = list(input())
i = 0
while i < len(s):
if s[i] == "B":
if i == 0:
del s[0]
i -= 1
else:
del s[i-1:i+1]
i -= 2
i += 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,204,372 |
s660111165 | p04030 | u146066372 | 1596848255 | Python | Python (3.8.2) | py | Accepted | 28 | 9116 | 205 | s=input()
S=len(s)
ans=[]
for i in range(S):
if s[i]=="0":
ans+="0"
elif s[i]=="1":
ans+="1"
elif s[i]=="B":
if len(ans)>=1:
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,204,373 |
s018327774 | p04030 | u218834617 | 1596843660 | Python | Python (3.8.2) | py | Accepted | 24 | 9112 | 122 | s=input()
stk=[]
for c in s:
if c in '01':
stk.append(c)
elif stk:
stk.pop()
print(''.join(stk))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,374 |
s704180819 | p04030 | u218834617 | 1596843572 | Python | Python (3.8.2) | py | Accepted | 27 | 8968 | 151 | s=input()
ans,skip='',0
for c in reversed(s):
if c=='B':
skip+=1
elif skip:
skip-=1
else:
ans+=c
print(ans[::-1])
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,375 |
s657063173 | p04030 | u218834617 | 1596843206 | Python | Python (3.8.2) | py | Accepted | 26 | 9092 | 122 | s=input()
stk=[]
for c in s:
if c in '01':
stk.append(c)
elif stk:
stk.pop()
print(''.join(stk))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,376 |
s176697821 | p04030 | u894623942 | 1596831129 | Python | Python (3.8.2) | py | Accepted | 27 | 8736 | 260 | S = list(input())
S_after = []
for i in S:
if i == '1':
S_after.append('1')
elif i == '0':
S_after.append('0')
elif i == 'B':
if S_after == []:
pass
else:
S_after.pop()
print(''.join(S_after)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,377 |
s802849035 | p04030 | u809819902 | 1596821093 | Python | PyPy3 (7.3.0) | py | Accepted | 66 | 61668 | 118 | s=input()
res=""
for i in range(len(s)):
if s[i]!="B":
res+=s[i]
else:
res=res[:-1]
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,378 |
s143248165 | p04030 | u083184913 | 1596810908 | Python | Python (3.8.2) | py | Accepted | 29 | 9032 | 129 | s=input()
a=""
for i in s:
if i=="0":
a+="0"
elif i=="1":
a+="1"
elif 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,204,379 |
s311763839 | p04030 | u554590385 | 1596769029 | Python | Python (3.8.2) | py | Accepted | 25 | 8972 | 180 | s=str(input())
C= list(s)
list=[]
for I in range(len(C)):
if C[I]!='B':
list.append(C[I])
elif C[I]=='B' and len(list)!=0:
list.pop()
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,204,380 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.