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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s817707411 | p04030 | u414558682 | 1568121113 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 364 | # coding: utf-8
# Your code here!
s = input()
# print(s)
result_s = ""
for i in range(len(s)):
# print(s[i])
if s[i] == '0':
# pass
result_s += '0'
if s[i] == '1':
# pass
result_s += '1'
if s[i] == 'B':
# pass
if len(s) > 0:
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,581 |
s049022613 | p04030 | u862757671 | 1568069163 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 168 | a = []
for s in input():
if s == 'B':
if a == []:
continue
else:
del a[-1]
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,582 |
s357509097 | p04030 | u595716769 | 1568064850 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 177 | s = input()
out = ""
for i in range(len(s)):
if s[i] == "0" or s[i] == "1":
out += s[i]
else:
if len(out) == 0:
pass
else:
out = out[:-1]
print(out) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,583 |
s364503511 | p04030 | u500589232 | 1568055350 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | s = str(input())
my_str = ''
for c in s:
if c == '0' or c == '1':
my_str+=c
elif c == 'B' and len(my_str) != 0:
my_str = my_str[:len(my_str)-1]
print(my_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,584 |
s408067344 | p04030 | u993161647 | 1568053420 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 245 | s = input()
output = []
for n in range(len(s)):
if s[n] == '1' or s[n] == '0':
output.append(s[n])
elif s[n] == 'B' and output != []:
backspace = len(output)-1
output = output[:backspace]
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,585 |
s652382240 | p04030 | u635540732 | 1568052375 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 158 | str=input()
x=list(str)
a=[]
for i in range(len(x)):
if x[i]=='0' or x[i]=='1':
a.append(x[i])
else:
if not a==[]:
a.pop()
print(''.join(a)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,586 |
s714629205 | p04030 | u580362735 | 1568047960 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 158 | s = input()
ans = ''
for i in range(len(s)):
if s[i] == '0':
ans += '0'
elif s[i] == '1':
ans += '1'
else:
ans = ans[:len(ans)-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,587 |
s319792208 | p04030 | u322354465 | 1568040162 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 195 | s = input()
ans_s = ''
for cha in s:
if cha == 'B':
if len(ans_s) == 0:
continue
else:
ans_s = ans_s[:-1]
else:
ans_s += cha
print(ans_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,588 |
s266143121 | p04030 | u224488911 | 1568001586 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | s=input()
ans=[]
for i in range(len(s)):
if s[i]=="0" or s[i]=="1":
ans.append(s[i])
else:
try:ans.pop()
except:pass
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,589 |
s305375500 | p04030 | u270144704 | 1567986006 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 222 | s=input()
list=[]
for i in range(len(s)):
if s[i]=='0':
list.append('0')
elif s[i]=='1':
list.append('1')
elif s[i]=='B' and list != []:
list.pop(-1)
print(''.join(list))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,590 |
s527414923 | p04030 | u640603056 | 1567980806 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 465 | #インポート
import sys
#入力用
def ILI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def ISI(): return map(int, sys.stdin.readline().rstrip().split())
def II(): return int(sys.stdin.readline().rstrip())
def ISS(): return sys.stdin.readline().rstrip().split()
def IS(): return sys.stdin.readline().rstrip()
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,591 |
s781063586 | p04030 | u407016024 | 1567963234 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 197 | s = list(input())
out = []
for i in s:
if i == '0':
out.append('0')
elif i == '1':
out.append('1')
elif i == 'B' and len(out) != 0:
out.pop()
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,592 |
s120563622 | p04030 | u033606236 | 1567962459 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | a = []
for s in input():
if "B" in s:
if not a:continue
else:a.pop()
else:a.append(s)
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,593 |
s593658998 | p04030 | u976225138 | 1567916898 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 131 | ans = ""
for s in input():
if s == "B" and ans:
ans = ans[:-1]
elif s != "B":
ans += s
else:
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,594 |
s988806515 | p04030 | u976225138 | 1567916857 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 134 | ans = ""
for s in input():
if s == "B":
if ans:
ans = ans[:-1]
else:
ans += s
else:
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,595 |
s064632476 | p04030 | u592248346 | 1567906087 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 145 | s = list(input())
ans = []
for i in s:
if len(ans)!=0 and i=='B':
ans.pop()
elif i!='B':
ans.append(i)
print(*ans,sep="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,596 |
s117835604 | p04030 | u970082363 | 1567873015 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 261 | def keyboard(s):
result = ""
for i in range(0,len(s)):
if s[i] == "0":
result += "0"
elif s[i] == "1":
result += "1"
elif s[i] == "B":
result = result[:-1]
print(result)
keyboard(input())
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,597 |
s630511535 | p04030 | u077898957 | 1567799666 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 159 | 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,598 |
s207164141 | p04030 | u557136512 | 1567795275 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 269 | orders = input()
display = ''
for order in orders:
if order == 'B':
if display == '':
pass
elif display != '':
display = display[:-1]
elif order == '1':
display = display + '1'
elif order == '0':
display = display + '0'
print(display) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,599 |
s088221297 | p04030 | u177411511 | 1567791218 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 310 | import sys
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()
s = input()
ans = ""
for i in range(len(s)):
if s[i] == '0' or s[i] == '1':
ans += s[i]
else:
if len(ans) > 0:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,600 |
s765638674 | p04030 | u994767958 | 1567744845 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | s = input()
for _ in range(10):
s=s.replace("1B", "").replace("0B","")
s=s.replace("B","")
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,601 |
s478773186 | p04030 | u033606236 | 1567709028 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 109 | s = input()
S = ""
for i in s:
if "B" in i:
S = S[:len(S)-1]
continue
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,602 |
s454251631 | p04030 | u181195295 | 1567701448 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 194 | s = list(input())
ans=[]
for i in s:
if i == "0":
ans.append("0")
elif i == "1":
ans.append("1")
else:
if len(ans) == 0: continue
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,603 |
s892935991 | p04030 | u045408189 | 1567651358 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 173 | s = list(input())
ans = []
for i in range(len(s)):
if s[i] != 'B':
ans.append(s[i])
else:
if len(ans)!=0:
ans.pop(-1)
print(*ans,sep='')
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,604 |
s399186313 | p04030 | u143903328 | 1567649373 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 155 | s = input()
ans = []
for i in range(len(s)):
if s[i] != 'B':
ans.append(s[i])
elif len(ans) != 0:
del(ans[-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,605 |
s897505360 | p04030 | u539018546 | 1567641797 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 205 | A =input()
B=""
for i in range(len(A)):
if i==0:
if A[i]!="B":
B= B+A[i]
else:
if A[i] !="B":
B=B+A[i]
else:
B = B[:(len(B)-1)]
print(B)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,606 |
s698701028 | p04030 | u193604641 | 1567641215 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 898 | def main():
data = raw_input()
row = []
for c in data: ... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,607 |
s186774087 | p04030 | u488127128 | 1567640221 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | s = input()
a = ''
for i in s:
if i == 'B':
a = a[:-1]
else:
a += i
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,608 |
s506350897 | p04030 | u396391104 | 1567631319 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 142 | s = list(input())
ans = ""
for c in s:
if c == "B" and len(ans):
ans = ans[:len(ans)-1]
elif c=="1" or c=="0":
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,609 |
s160371914 | p04030 | u872056745 | 1567618033 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 190 | s = input()
output = ""
for i in range(0, len(s)):
if s[i] == "0" or s[i] == "1":
output += s[i]
else:
if len(output) > 0:
output = output[0: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,205,610 |
s196572398 | p04030 | u273038590 | 1567559579 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 134 | stack=[]
for i in input():
if i=="B" and stack:
stack.pop()
elif i!="B":
stack.append(i)
print("".join(stack)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,611 |
s682755100 | p04030 | u756569003 | 1567512670 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 87 | s = input()
e = ''
for i in s:
if i == 'B': e = e[:-1]
else: e += i
print(e)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,612 |
s014729701 | p04030 | u734876600 | 1567479387 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 149 | s = input()
ans = ""
for c in s:
if c == "0":
ans += "0"
elif c == "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,613 |
s826508185 | p04030 | u273038590 | 1567477943 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | s=input()
stack=[]
for i in s:
if i=="B" and stack:
stack.pop()
elif i!="B":
stack.append(i)
print("".join(stack)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,614 |
s102596174 | p04030 | u703890795 | 1567474415 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 127 | S = input()
e = "" # えでぃた
for s in S:
if s == "B":
if e != "":
e = e[:len(e)-1]
else:
e += s
print(e) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,615 |
s447256691 | p04030 | u492447501 | 1567447886 | Python | Python (3.4.3) | py | Accepted | 26 | 3952 | 334 | import queue
S = list(input())
stack = []
for i in S:
#Sの今の要素がBの時
if i=="B":
if len(stack)==0:
continue
else:
stack.pop()
else:
#Sの今の要素が文字の時
stack.append(i)
str = ""
for i in range(len(stack)):
str = str+stack[i]
print(str) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,616 |
s975042450 | p04030 | u171421802 | 1567440029 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 131 | s=input()
a=''
for x in s:
if x=='0':
a+='0'
elif x=='1':
a+='1'
elif x=='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,205,617 |
s929670921 | p04030 | u395202850 | 1567390190 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 217 | s = list(input())
ans = ""
for i in range(len(s)):
if s[i] == "0":
ans += "0"
elif s[i] == "1":
ans += "1"
else:
if len(ans) != 0:
ans = ans[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,618 |
s987191066 | p04030 | u163791883 | 1567389862 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 168 | ans = ''
S = input()
for i in S:
if len(S) != 0 and i == 'B':
ans = ans[:-1]
continue
elif len(S) == 0 and i == 'B':
continue
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,619 |
s740494223 | p04030 | u113003638 | 1567379811 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 198 | s = input()
a = []
for i in range(len(s)):
if s[i] == '0':
a.append(s[i])
elif s[i] == '1':
a.append(s[i])
else:
if a!= []:
a.pop()
print(''.join(a))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,620 |
s083760550 | p04030 | u919025034 | 1567321049 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 185 | a = list(input())
ans = []
for b in a:
if b == "0":
ans.append("0")
elif b == "1":
ans.append("1")
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,621 |
s606859760 | p04030 | u116002573 | 1567273552 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 245 | def main():
s = input()
stack = []
for c in s:
if c in "01":
stack.append(c)
else:
if stack:
stack.pop()
return "".join(stack)
if __name__ == '__main__':
print(main()) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,622 |
s519119946 | p04030 | u874303957 | 1567269882 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | s = []
for c in input():
if c == 'B':
s and s.pop()
else:
s.append(c)
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,623 |
s676491642 | p04030 | u559103167 | 1567264119 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | s = input()
ans = ""
for i in s:
if i == "B":
ans = ans[:len(ans)-1]
else:
ans += i
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,624 |
s135543504 | p04030 | u350248178 | 1567243210 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 166 | s=input()
l=[]
for i in s:
if i=="0":
l.append("0")
elif i=="1":
l.append("1")
else:
if l:
del l[-1]
print("".join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,625 |
s672155011 | p04030 | u346629192 | 1567229587 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 159 | s = input()
ans = ""
for x in s:
if x == "0":
ans += "0"
elif x == "1":
ans += "1"
elif x == "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,626 |
s857198732 | p04030 | u770077083 | 1567221059 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 160 | s = input()
stack = ""
for x in s:
if x in ["0", "1"]:
stack += x
else:
if len(stack) != 0:
stack = stack[:-1]
print(stack)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,627 |
s332634055 | p04030 | u187462782 | 1567198470 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 189 | s = input()
result = []
for b in s:
if b == '0':
result.append('0')
elif b == '1':
result.append('1')
else:
result = result[:-1]
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,628 |
s986043186 | p04030 | u573272932 | 1567193503 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 116 | ans = []
for w in input():
if w == "B":
try: ans.pop()
except: pass
else:
ans.append(w)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,629 |
s358232987 | p04030 | u625963200 | 1567191817 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | S=input()
ans=''
for s in S:
if s=='0':
ans=ans+'0'
elif s=='1':
ans=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,630 |
s866348445 | p04030 | u264265458 | 1567138685 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 167 | a=list(input())
b=[]
for i in range(len(a)):
if a[i]=="0":
b.append("0")
elif a[i]=="1":
b.append("1")
else:
if b!=[]:
b.pop()
print(*b,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,631 |
s860907000 | p04030 | u835482198 | 1567138630 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 119 | s = input()
b = ''
for i in range(len(s)):
if s[i] == 'B':
b = b[:-1]
else:
b += s[i]
print(b)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,632 |
s342370770 | p04030 | u790710233 | 1567122263 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 131 | s = input()
ans = ''
for x in s:
if x != 'B':
ans += x
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,205,633 |
s917751145 | p04030 | u647522078 | 1567121833 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 156 | ss = list(input())
ans = []
for s in ss:
if s != "B":
ans.append(s)
elif s == "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,205,634 |
s078541922 | p04030 | u910756197 | 1567090587 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 176 | s = input()
ans = ""
for k in s:
if k == "1":
ans += "1"
elif k == "0":
ans += "0"
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,205,635 |
s928782500 | p04030 | u134712256 | 1567090122 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 163 | s=input()
t=""
for i in range(len(s)):
if s[i]=="0":
t+="0"
elif s[i]=="1":
t+="1"
elif s[i]=="B"and t!="":
t=t[:-1]
print(t)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,636 |
s610292210 | p04030 | u013296940 | 1567025056 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 199 | s = input()
n = len(s)
w = "" #エディタの文字列
for i in range(n):
if s[i] in {"0", "1"}:
w += s[i]
elif s[i] == "B":
if len(w) != 0:
w = w[:-1]
print(w) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,637 |
s164973702 | p04030 | u957872856 | 1567024803 | Python | Python (3.4.3) | py | Accepted | 17 | 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,638 |
s393164844 | p04030 | u739959951 | 1567024500 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | l=[i for i in input()]
ans_list=[]
for i in l:
if i=='0' or i=='1':
ans_list.append(i)
else:
if not ans_list==[]:
ans_list.pop()
ans=''.join(ans_list)
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,639 |
s223566907 | p04030 | u920438243 | 1567024144 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 219 | lines = list(input())
answers = []
out = ""
for line in lines:
if line == "0" or line == "1":
answers.append(line)
elif answers:
answers.pop()
for answer in answers:
out += answer
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,205,640 |
s793380264 | p04030 | u119655368 | 1566993451 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 97 | N=str(input())
x = ''
for c in N:
if c == 'B':
x = x[:-1]
else:
x = x+c
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,641 |
s542882267 | p04030 | u865413330 | 1566940699 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 199 | s = list(input())
ans = []
for c in s:
if c == "0":
ans.append("0")
elif c == "1":
ans.append("1")
elif c == "B":
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,642 |
s024157088 | p04030 | u428397309 | 1566926561 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 143 | # -*- coding: utf-8 -*-
s = input()
ans = ''
for c in s:
if c == 'B':
ans = ans[:-1]
else:
ans = 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,643 |
s148310150 | p04030 | u642120132 | 1566877720 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 156 | a = []
for i in input():
if i == '0' or i == '1':
a.append(i)
elif len(a) == 0:
continue
else:
a.pop()
print(''.join(a)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,644 |
s586927923 | p04030 | u477216059 | 1566864178 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 244 | if __name__ == "__main__":
sl = list(input())
text = ""
for s in sl:
if s == "0" or s == "1":
text = text + s
elif s == "B":
if text != "":
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,645 |
s452559515 | p04030 | u881816188 | 1566849855 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 207 | s=str(input())
ans=''
for i in s:
if i=='0':
ans+='0'
elif i=='1':
ans+='1'
elif i=='B':
if ans=='':
continue
else:
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,646 |
s864439778 | p04030 | u989345508 | 1566784662 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 164 | s1=input()
s2=""
for i in s1:
if i=="0":
s2+="0"
elif i=="1":
s2+="1"
elif s2=="":
pass
else:
s2=s2[:-1]
print(s2)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,647 |
s036312557 | p04030 | u713465512 | 1566764465 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 211 | s = input()
stack = []
for char in s:
if char == "0" or char == "1":
stack.append(char)
else:
if not stack:
continue
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,648 |
s512846273 | p04030 | u259334183 | 1566749647 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | a=''
for s in input():
if s=='B' and a!='':
a=a[:-1]
elif s=='0' or s=='1':
a+=s
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,649 |
s893322938 | p04030 | u987170100 | 1566746429 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 156 | s = input()
lst = []
for x in s:
if x != 'B':
lst.append(x)
else:
if lst:
lst.pop()
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,205,650 |
s520447698 | p04030 | u802963389 | 1566707516 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | s = input()
ans = []
for i in s:
if i == "B":
if ans:
ans.pop()
else:
ans.append(i)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,651 |
s141943688 | p04030 | u732963817 | 1566672707 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 148 | s = input()
o = []
for _s in s:
if _s in ["0", "1"]:
o.append(_s)
else:
if len(o) > 0:
o.pop()
print("".join(o)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,652 |
s096449979 | p04030 | u256464928 | 1566671744 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 177 | S = input()
editor = []
for s in S:
if s=="0":
editor.append(s)
elif s=="1":
editor.append(s)
else:
if len(editor)!=0:
editor.pop()
print(*editor,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,653 |
s343954210 | p04030 | u251515715 | 1566657331 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | s=list(input())
t=[]
for i in s:
if i=='0' or i=='1':
t.append(i)
elif i=='B' and len(t)>0:
t=t[:-1]
ans=''
for i in t:
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,654 |
s576492974 | p04030 | u263226212 | 1566614340 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 259 | # -*- coding: utf-8 -*-
# input
s = input()
# solve
ans = list()
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()
# output
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,655 |
s812924756 | p04030 | u598229387 | 1566606558 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | s=list(input())
ans=[]
for i in s:
if i=='0' or i=='1':
ans+=i
if i=='B' and len(ans)!=0:
ans.pop()
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,656 |
s658066409 | p04030 | u169657264 | 1566605559 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 178 | s = input()
pri_s = ""
for i in s:
if i == "0":
pri_s += "0"
if i == "1":
pri_s += "1"
if i == "B":
pri_s = pri_s[0:len(pri_s)-1]
print(pri_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,657 |
s577568516 | p04030 | u234631479 | 1566594991 | Python | Python (3.4.3) | py | Accepted | 16 | 2940 | 121 | S = ""
for i in input():
if i == "B" and S == "":
pass
elif i == "B":
S = S[0:-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,658 |
s298313129 | p04030 | u357630630 | 1566543256 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 232 | N = list(input())
L = []
for i in N:
try:
if i == "0":
L.append("0")
elif i == "1":
L.append("1")
else:
L.pop(-1)
except IndexError:
pass
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,659 |
s126637844 | p04030 | u957872856 | 1566518369 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 82 | t = ""
for i in input():
if i == "B":
t = t[:-1]
else:
t += i
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,660 |
s663119476 | p04030 | u810978770 | 1566514446 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 93 | s = input()
ans = ''
for i in s:
if i !='B':
ans += i
else:
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,661 |
s177927544 | p04030 | u810978770 | 1566514085 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 177 | s = list(input())
ans = []
for i in s:
if i == 'B' and 0 < len(ans):
ans.pop(len(ans)-1)
elif i== 'B' and 0==len(ans):
continue
else:
ans.append(i)
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,662 |
s167795994 | p04030 | u329143273 | 1566494187 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 146 | s=input()
stack=[]
for i in s:
if i=='B':
if stack:
stack.pop()
else:
pass
else:
stack.append(i)
print(''.join(stack)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,663 |
s771401623 | p04030 | u410118019 | 1566441505 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 164 | a = []
for i in input():
if i == '0':
a.append('0')
elif i == '1':
a.append('1')
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,664 |
s383060787 | p04030 | u433532588 | 1566416470 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 170 |
s = list(input())
ret = []
for c in s:
if c == '0' or c == '1':
ret.append(c)
else:
if len(ret) > 0:
ret.pop()
print(*ret, 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,665 |
s884076440 | p04030 | u762540523 | 1566401865 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 104 | s=input()
for _ in range(10):
s=s.replace("0B","")
s=s.replace("1B","")
s=s.replace("B","")
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,666 |
s536422591 | p04030 | u243572357 | 1566400332 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | s = input()
count = ''
for i in s:
if i == 'B':
if len(count) != 0:
count = count[:-1]
else:
count += i
print(count) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,667 |
s714240676 | p04030 | u714378447 | 1566359393 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 86 | ans=''
S=input()
for s in S:
if s!='B':ans=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,668 |
s729609559 | p04030 | u753803401 | 1566351233 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 119 | s = input()
t = ""
for i in range(len(s)):
if s[i] == "B":
t = t[:-1]
else:
t += s[i]
print(t)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,669 |
s438194055 | p04030 | u771405286 | 1566335857 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 204 | S = input()
rets = []
for s in S:
if s=="0":
rets.append("0")
elif s=="1":
rets.append("1")
elif s=="B":
if len(rets) > 0:
rets.pop(-1)
print("".join(rets)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,670 |
s088660253 | p04030 | u994988729 | 1566333436 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | S=input()
ans=[""]*10
i=0
for s in S:
if s=="B":
if i==0:
continue
else:
i-=1
ans[i]=""
else:
ans[i]=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,205,671 |
s592895546 | p04030 | u412481017 | 1566246124 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 178 | S=input()
result=[]
for s in S:
#print(result)
if s=="B":
if len(result)>0:
#print("nBack")
result.pop()
else:
result.append(s)
print(*result,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,672 |
s165726084 | p04030 | u256464928 | 1566159152 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 160 | ans = ""
s = input()
S = len(s)
for i in range(S):
if s[i]=='B':
ans = ans[:len(ans)-1]
elif s[i]=='1':
ans += '1'
else:
ans += '0'
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,673 |
s190437112 | p04030 | u798316285 | 1566154440 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 106 | s=input()
ans=""
for i in range(len(s)):
if s[i]=="B":
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,674 |
s195277105 | p04030 | u360116509 | 1566152679 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | 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,675 |
s693418121 | p04030 | u901582103 | 1566152664 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | S=input()
l=[]
for s in S:
if s!='B':
l.append(s)
else:
if l==[]:
pass
else:
l.pop()
print(*l,sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,676 |
s722399327 | p04030 | u183896397 | 1566100351 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 212 | s = input()
X = list(s)
Y = []
for i in range(len(X)):
if X[i] != 'B':
Y.append(X[i])
else:
if Y != []:
Y.pop(-1)
ans = ''
for i in range(len(Y)):
ans += Y[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,677 |
s880539042 | p04030 | u002459665 | 1566081999 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 174 | s = input()
q = []
for si in s:
if si == 'B':
if len(q) != 0:
q.pop()
else:
pass
else:
q.append(si)
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,205,678 |
s718119462 | p04030 | u618373524 | 1566067433 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 119 | s = input()
w = ""
for i in range(len(s)):
if s[i] == "B":
w = w[:-1]
else:
w += s[i]
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,679 |
s132138495 | p04030 | u338929851 | 1566050475 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 267 | # -*- coding: utf-8 -*-
if __name__ == '__main__':
S = input()
out = []
for s in S:
if s=='B':
try:
out.pop(-1)
except:
pass
else:
out.append(s)
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,680 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.