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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s153187342 | p04030 | u319818856 | 1554759333 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 345 | def unhappy_hacking(s: str) -> str:
display = ''
for key in s:
if key == '0':
display += '0'
elif key == '1':
display += '1'
else: # Backspace
display = display[:-1]
return display
if __name__ == "__main__":
s = input()
ans = unhappy_h... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,981 |
s127804636 | p04030 | u911575040 | 1554725789 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 163 | s = input()
ans = ''
for i in range(len(s)):
if s[i:i+1]=='0':
ans += '0'
elif s[i:i+1]=='1':
ans += '1'
elif s[i:i+1]=='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,982 |
s021696392 | p04030 | u483151310 | 1554664975 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 220 | s = input()
# s = "01B0"
# print(s[0])
ans = []
for key in range(len(s)):
if s[key] == "0" or s[key] == "1":
ans.append(s[key])
if s[key] == "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,983 |
s563804199 | p04030 | u299730702 | 1554649448 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 120 | s = input()
ans = ''
for x in s:
if x in ['0', '1']:
ans += x
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,984 |
s121294698 | p04030 | u777028980 | 1554496042 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 276 | hoge=input()
ans=[]
while len(hoge):
if(hoge[0]=="0"):
ans.append(0)
hoge=hoge[1:]
elif(hoge[0]=="1"):
ans.append(1)
hoge=hoge[1:]
else:
if(len(ans)>0):
ans=ans[:-1]
hoge=hoge[1:]
for i in range(len(ans)):
print(ans[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,205,985 |
s970850926 | p04030 | u037430802 | 1554429538 | Python | Python (3.4.3) | py | Accepted | 21 | 3060 | 191 | s = list(input())
ans = []
for n in s:
if n == "0":
ans.append("0")
elif n == "1":
ans.append("1")
elif n == "B":
if len(ans) != 0:
ans.pop(-1)
print("".join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,986 |
s270415783 | p04030 | u003928116 | 1554427951 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 155 | s=input()
ans=""
for i in range(len(s)):
if s[i]=="0":
ans+="0"
elif s[i]=="1":
ans+="1"
else:
ans=ans[0:-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,987 |
s112780883 | p04030 | u513900925 | 1554331928 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 224 | n =input()
m = ''
for i in range(len(n)):
if n[i] == 'B':
if not m:
print('')
else:
m= m[:-1]
else:
m += n[i]
print(m)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,988 |
s264033859 | p04030 | u279493135 | 1554325967 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 229 | from sys import stdin
input = stdin.readline
s = input().rstrip()
ans = []
for i in s:
#print(ans)
if i == "0":
ans.append("0")
elif i == "1":
ans.append("1")
else:
if not 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,205,989 |
s261898370 | p04030 | u225415456 | 1554253348 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 297 | a = [str(x) for x in input()]
N = len(a)
b = []
for i in range(N):
if a[i] == "0":
b.extend("0")
elif a[i] == "1":
b.extend("1")
else:
if len(b) == 0:
pass
else:
b.pop(-1)
print("".join(b)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,990 |
s728702694 | p04030 | u457190703 | 1554229366 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 218 | input_line = input()
str = ""
for i in range(0,len(input_line)):
if input_line[i] == '0':
str += "0"
elif input_line[i] == '1':
str += "1"
elif input_line[i] == 'B':
str = str[:-1]
else:
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,991 |
s575657743 | p04030 | u457190703 | 1554229361 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 218 | input_line = input()
str = ""
for i in range(0,len(input_line)):
if input_line[i] == '0':
str += "0"
elif input_line[i] == '1':
str += "1"
elif input_line[i] == 'B':
str = str[:-1]
else:
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,992 |
s130061971 | p04030 | u405947212 | 1554212241 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | s = input()
res = ""
for x in s:
if x =="B":
res = res[:-1]
else:
res += x
print(res)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,993 |
s687717449 | p04030 | u912862653 | 1554178307 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 161 | s = input()
ans = ''
for i in range(len(s)):
if s[i:i+1]=='0':
ans += '0'
elif s[i:i+1]=='1':
ans += '1'
elif s[i:i+1]=='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,994 |
s525829067 | p04030 | u363610900 | 1554163399 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 202 | s = input()
ans = []
for i in s:
if i == '0' or i == '1':
ans.append(i)
elif i == 'B':
if len(ans) == 0:
pass
else:
ans.pop()
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,995 |
s832798687 | p04030 | u363610900 | 1554163039 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 123 | s = input()
ans = ''
for i in s:
if i == '0' or i == '1':
ans += i
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,996 |
s396333254 | p04030 | u655975843 | 1554153557 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 222 | s = input()
ans = []
for i in range(len(s)):
if s[i] == '0':
ans.append('0')
if s[i] == '1':
ans.append('1')
if s[i] == 'B':
if len(ans) != 0:
ans.pop(-1)
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,997 |
s943425928 | p04030 | u603745966 | 1554086951 | Python | Python (3.4.3) | py | Accepted | 22 | 3572 | 609 | from functools import reduce
def main():
# 一文字のみを読み込み
# s = input().rstrip().split(' ')
# スペース区切りで標準入力を配列として読み込み
# s = input().rstrip().split(' ')
# 位置文字ずつ標準入力を配列として読み込み
# s = list(input().rstrip())
s = list(input().rstrip())
ans = []
i = 0
for char in s:
if char==... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,998 |
s233805058 | p04030 | u143318682 | 1553986733 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 221 | # -*- coding: utf-8 -*-
s = 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[:-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,999 |
s974338787 | p04030 | u020604402 | 1553921841 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 241 | S = list(input())
ans = []
for i in range(len(S)):
if S[i] == 'B':
if len(ans) == 0:
pass
else:
del ans[-1]
else:
ans.append(S[i])
for x in ans:
print(x,end='')
print()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,000 |
s931217985 | p04030 | u020604402 | 1553921649 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 232 | S = list(input())
ans = []
for i in range(len(S)):
if S[i] == 'B':
try:
del ans[-1]
except IndexError:
pass
else:
ans.append(S[i])
for x in ans:
print(x,end='')
print()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,001 |
s045065695 | p04030 | u020604402 | 1553921272 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 290 | S = list(input())
i = 0
while 'B' in S:
if S[i] == 'B':
if i == 0:
del S[0]
i = 0
continue
else:
del S[i-1]
del S[i-1]
i = 0
continue
i += 1
for x in S:
print(x, end='')
print()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,002 |
s186331502 | p04030 | u305965165 | 1553895331 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | s = input()
res = ""
for x in s:
if x =="B":
res = res[:-1]
else:
res += x
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,003 |
s390923795 | p04030 | u082861480 | 1553802282 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 195 | w = input()
res = []
for i in w:
if i =='1':
res.append(i)
elif i == '0':
res.append(i)
elif len(res) > 0:
res.pop()
else:
pass
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,206,004 |
s256770692 | p04030 | u077019541 | 1553737383 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 244 | Ss = [i for i in input()]
ans = []
for s in Ss:
if s == "0":
ans.append("0")
elif s == "1":
ans.append("1")
else:
if len(ans)==0:
continue
else:
del ans[-1]
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,005 |
s166031228 | p04030 | u180528413 | 1553734661 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 224 | s = input()
s_list = list(s)
count = s.count('B')
for _ in range(count):
ind = s_list.index('B')
if ind > 0:
s_list[ind-1] = ''
s_list[ind] = ''
s = ''.join(s_list)
s_list = list(s)
s = ''.join(s_list)
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,006 |
s588817565 | p04030 | u795630164 | 1553719191 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | s = input()
answer = ''
for i in s:
if i == '1' or i == '0':
answer += i
elif len(answer) > 0:
answer = answer[:-1]
print(answer) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,007 |
s765013282 | p04030 | u455696302 | 1553696291 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | s = input()
res = ""
for i in range(len(s)):
if s[i] == 'B' and len(res) > 0:
res = res[:-1]
elif s[i] != 'B':
res += s[i]
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,008 |
s866195457 | p04030 | u614314290 | 1553655259 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 97 | r = []
for c in input():
if c == "B":
if r:
r.pop()
else:
r.append(c)
print(*r, sep="")
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,009 |
s814206002 | p04030 | u013408661 | 1553652804 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 165 | ans=[]
s=list(input())
for i in s:
if i=="0":
ans.append("0")
elif i=="1":
ans.append("1")
else:
if len(ans)>0:
ans.pop()
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,010 |
s688404994 | p04030 | u714533789 | 1553634135 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | 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,206,011 |
s476804173 | p04030 | u797550216 | 1553630821 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 195 | s = input()
n = len(s)
ans = ''
for i in range(n):
if s[i] == '0':
ans += '0'
if s[i] == '1':
ans += '1'
if s[i] == 'B':
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,012 |
s551894149 | p04030 | u597374218 | 1553563271 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | t=[]
for x in input():
if x=="B":
try:t.pop()
except:pass
else:t.append(x)
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,206,013 |
s932591695 | p04030 | u363610900 | 1553412229 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | s = list(input())
ans = ''
for i in s:
if i == '0' or i == '1':
ans += i
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,206,014 |
s824514055 | p04030 | u179719532 | 1553407042 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 174 | # coding: UTF-8
ss = input()
text = []
for s in ss:
if s == 'B':
if text != []:
text.pop(-1)
else:
text.append(s)
print(''.join(text))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,015 |
s746498143 | p04030 | u811000506 | 1553393189 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 153 | s = str(input())
ans = ""
for i in range(0,len(s),1):
if s[i] == "0" or s[i] == "1":
ans += s[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,206,016 |
s747820657 | p04030 | u227082700 | 1553286570 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 145 | def b(x):
if x=='':return''
else:return x[:-1]
s,ans=input(),''
for i in range(len(s)):
if s[i]=='B':ans=b(ans)
else:ans+=s[i]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,017 |
s276588728 | p04030 | u588081069 | 1553270302 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 172 | String = input()
result = ''
for char in String:
if char == '0' or char == '1':
result += char
elif char == 'B':
result = result[:-1]
print(result)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,018 |
s217821103 | p04030 | u588081069 | 1553269987 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 202 | String = input()
result = ''
for char in String:
if char == '0':
result += char
elif char == '1':
result += char
elif char == 'B':
result = result[:-1]
print(result)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,019 |
s715294989 | p04030 | u325264482 | 1553232825 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 196 | S = input()
ans = []
for s in S:
if s == '0':
ans.append('0')
elif s == '1':
ans.append('1')
else:
if len(ans) > 0:
ans.pop()
print("".join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,020 |
s903348958 | p04030 | u488178971 | 1553227060 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 119 | # ABC 043 B
S =input()
ANS = ""
for _ in S:
if _ =="B":
ANS =ANS[:-1]
else:
ANS +=_
print(ANS) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,021 |
s165858327 | p04030 | u721316601 | 1553200395 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | s = input()
ans = ''
for _ in s:
if _ == 'B':
ans = ans[:-1]
else:
ans += _
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,022 |
s851564799 | p04030 | u268516119 | 1553129401 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 130 | s=str(input())
ans=[]
for i in s:
if i!="B":
ans.append(i)
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,206,023 |
s146923484 | p04030 | u782654209 | 1553096501 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 206 | S=str(input())
disp=''
for i in range(len(S)):
if S[i]=='0': disp+='0'
elif S[i]=='1': disp+='1'
elif S[i]=='B' and disp=='': continue
elif S[i]=='B' and disp!='': disp=disp[:-1]
print(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,206,024 |
s343574852 | p04030 | u363610900 | 1553065522 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 244 | string = []
S = input()
for i in S:
if i == '0':
string += '0'
elif i == '1':
string += '1'
elif i == 'B':
if len(string) == 0:
pass
else:
del string[-1]
print(''.join(string)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,025 |
s658197339 | p04030 | u367130284 | 1552966080 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 86 | 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,206,026 |
s109213702 | p04030 | u280512618 | 1552944164 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | s = input()
l = []
for c in s:
if c == 'B':
if l != []:
l.pop()
else:
l.append(c)
print(''.join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,027 |
s828618494 | p04030 | u824237520 | 1552939872 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | s = list(input())
ans = []
for c in s:
if c == 'B':
if len(ans) > 0:
del ans[len(ans) - 1]
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,206,028 |
s853982733 | p04030 | u118642796 | 1552920497 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 123 | s = input()
ans = ""
for c in s:
if c!="B":
ans += c
elif ans:
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,029 |
s220089485 | p04030 | u518042385 | 1552872041 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 198 | list=list(input())
words=[]
word=""
for i in list:
if i=="0" or i=="1":
words.append(i)
else:
if words==[]:
pass
else:
del words[-1]
for i in words:
word+=i
print(word) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,030 |
s168017562 | p04030 | u392029857 | 1552856564 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 146 | s = input()
p = ''
for i in range(len(s)):
if s[i] == 'B':
if 1 <= len(p):
p = p[:-1]
else:
p += s[i]
print(p) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,031 |
s882230483 | p04030 | u393512980 | 1552847231 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | s=input()
ans=""
for x in s:
if x == 'B' and len(ans)>0:
ans=ans[:len(ans)-1]
else:
if x != 'B':
ans+=x
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,032 |
s313337072 | p04030 | u914773681 | 1552677385 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 386 | def main():
s = input() # 入力文字列
out =''
for i in s:
if (out=='')and(i=='B'):
# outが空かつbackspaceのときはなにもしない
pass
elif (i=='B'):
out = out[:-1] # 最後の文字列[-1]までを代入,pyでは[0:n]のときn-1までをいれる
else:
out = out + i
print(out)
main() | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,033 |
s396961217 | p04030 | u285443936 | 1552613952 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "0" or s[i] == "1":
ans += s[i]
elif s[i] == "B":
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,034 |
s542483629 | p04030 | u375616706 | 1552568656 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 246 | # python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
S = input()[:-1]
ans = []
for c in S:
if c == "B":
if ans:
ans.pop(-1)
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,206,035 |
s660842449 | p04030 | u384657160 | 1552509229 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 375 | s = list(str(input()))
lis = []
a = ""
for i in range(len(s)):
if s[i] == "B":
if len(lis) == 0:
continue
else:
lis.pop()
elif s[i] == "1":
lis.append("1")
else:
lis.append("0")
for... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,036 |
s915578014 | p04030 | u945418216 | 1552411585 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 132 | s = input()
ans = ''
for x in s:
if x =='B':
ans = ans[:-1] if len(ans)>0 else ans
else:
ans += x
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,037 |
s744808722 | p04030 | u071730284 | 1552332794 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 158 | s = input()
ans = ""
for ch in s:
if ch == "B":
if ans != "":
ans = ans[0:len(ans) - 1]
else:
ans = ans + ch
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,038 |
s747800683 | p04030 | u500297289 | 1552292871 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 218 | """ AtCoder """
s = input()
ans = ''
for i in range(len(s)):
if s[i] == 'B':
if len(ans) != 0:
ans = 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,206,039 |
s661884432 | p04030 | u380933932 | 1552245204 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 292 | #n=int(input())
#li=input().split()
#li=list(map(int,input().split()))
n=input()
ans=""
for i in range(len(n)):
if n[i]=="0":
ans+="0"
elif n[i]=="1":
ans+="1"
elif n[i]=="B":
if ans=="":
pass
else:
ans=ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,040 |
s163947600 | p04030 | u021877437 | 1552226896 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 232 | S = list(input().rstrip())
r = []
for i in range(len(S)):
if S[i] == '0':
r.append('0')
elif S[i] == '1':
r.append('1')
elif S[i] == 'B':
if 0 < len(r):
del r[-1]
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,206,041 |
s628816961 | p04030 | u722535636 | 1552174162 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 84 | a=''
for c in input():
if c=='B':
if len(a)>0:
a=a[:-1]
else:
a+=c
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,042 |
s778207887 | p04030 | u430527172 | 1552166300 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | s = str(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,206,043 |
s756245637 | p04030 | u677393869 | 1552157620 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 151 | A=str(input())
A=list(A)
B=[]
for i in A:
if i=="0":
B.append("0")
elif i=="1":
B.append("1")
elif i=="B":
B=B[:-1]
print(''.join(B)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,044 |
s963024166 | p04030 | u282228874 | 1552107706 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 150 | s = input()
ans = ''
for i in s:
if i == '0':
ans += '0'
elif 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,206,045 |
s500877349 | p04030 | u555947166 | 1552007860 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 249 | s = input()
output = ''
for i in range(len(s)):
if s[i] == '0':
output += '0'
elif s[i] == '1':
output += '1'
else:
if output == '':
pass
else:
output = output[:-1]
print(output)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,046 |
s578426734 | p04030 | u695857481 | 1551996375 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 154 | 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,206,047 |
s629778647 | p04030 | u785578220 | 1551933450 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 162 | a = input()
l = []
for i in a:
if i == "B" and len(l)>0:
l.pop()
elif i == "0" or i == "1":
l.append(i)
s=''
for i in l:
s+=i
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,048 |
s879185685 | p04030 | u794173881 | 1551926599 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 174 | 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 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,206,049 |
s739813112 | p04030 | u186838327 | 1551853809 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 146 | s = str(input())
l = []
for i in range(len(s)):
if s[i] == 'B':
if len(l) != 0:
l.pop(-1)
else:
l.append(s[i])
print(''.join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,050 |
s867728098 | p04030 | u864667985 | 1551813456 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 123 | s = input()
ans = ''
for x in s:
if x == '0' or x == '1':
ans += x
else:
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,051 |
s575976517 | p04030 | u728498511 | 1551738855 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 189 | s = list(input())
ans = []
for i in range(len(s)):
if s[i] == '0' or s[i] == '1':
ans.append(s[i])
else:
if len(ans) > 0:
ans.pop(-1)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,052 |
s947538312 | p04030 | u928784113 | 1551728946 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 194 | s = input()
ans = []
for i in s:
if i == "1":
ans.append("1")
elif i == "0":
ans.append("0")
else:
if len(ans) != 0:
ans.pop()
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,053 |
s823223535 | p04030 | u619197965 | 1551580059 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 158 | s=input()
text=""
for i in range(len(s)):
if s[i]=="B":
if text!="":
text=text[0:len(text)-1]
else:
text+=s[i]
print(text) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,054 |
s366819084 | p04030 | u566574814 | 1551577127 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 172 | s_list = list(input())
res = []
for s in s_list:
if s == 'B':
if len(res) == 0: continue
res.pop(-1)
else:
res.append(s)
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,206,055 |
s903704182 | p04030 | u860670906 | 1551422775 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 212 | S=input()
out=''
for i in range(len(S)):
if S[i] == '0':
out = out +'0'
elif S[i] =='1':
out = out + '1'
else:
if len(out) !=0:
out = out[0:len(out)-1]
print(out)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,056 |
s965092967 | p04030 | u030626972 | 1551413058 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 220 | s = input()
out = ''
for i in range(len(s)):
if s[i] == '0':
out = out + '0'
elif s[i] == '1':
out = out + '1'
else:
if len(out) != 0:
out = out[0:len(out)-1]
print(out) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,057 |
s835215442 | p04030 | u155236040 | 1551408541 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 170 | s_list = list(input())
res = []
for s in s_list:
if s == 'B':
if len(res)==0: continue
res.pop(-1)
else:
res.append(s)
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,206,058 |
s476001810 | p04030 | u476418095 | 1551405506 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 195 | s=input();k=[]
for i in range(0,len(s)):
if s[i]!='B':
k.append(int(s[i]))
else:
if k!=[]:
del k[-1]
for j in range(0,len(k)):
print(k[j],end='')
print('') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,059 |
s002205075 | p04030 | u301302814 | 1551400066 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 190 | # coding: utf-8
S = input()
ans = ''
for s in S:
if s == 'B' and ans == '':
continue
if s == '0':
ans += '0'
elif s == '1':
ans += '1'
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,060 |
s657958288 | p04030 | u729133443 | 1551389426 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 52 | s=''
for c in input():s=[s+c,s[:-1]][c>'1']
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,061 |
s952785659 | p04030 | u370331385 | 1551389250 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 217 | s = input()
s = list(s)
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):
ans.pop(-1)
str = ''.join(ans)
print(str) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,062 |
s769761581 | p04030 | u729133443 | 1551389043 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 97 | l=[''for _ in'_'*9]
for c in input():
if c>'1':l.pop()
else:l.append(c)
print(''.join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,063 |
s179246486 | p04030 | u216631280 | 1551245734 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 212 | s = input()
ans =''
for c in s:
if c == '0':
ans += '0'
elif c == '1':
ans += '1'
else:
if len(s) == 0:
continue
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,064 |
s542798634 | p04030 | u023229441 | 1551238210 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | s=input()
ans=""
for i in s:
if i=="0" or i=="1":
ans+=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,206,065 |
s059276161 | p04030 | u303059352 | 1551210747 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 53 | s=''
for c in input():s=[s+c,s[:-1]][c=='B']
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,066 |
s900135666 | p04030 | u303059352 | 1551210396 | Python | Python (3.4.3) | py | Accepted | 23 | 2940 | 54 | s=''
for c in input():s=[s+c,s[:-1]][c=='B']
print(s)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,067 |
s746686771 | p04030 | u303059352 | 1551210324 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 59 | s = ''
for c in input():s=[s+c, s[:-1]][c == 'B']
print(s)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,068 |
s998391043 | p04030 | u033524082 | 1551210073 | Python | Python (3.4.3) | py | Accepted | 22 | 2940 | 63 | s=""
for c in input():
s=s[:-1] if c=="B" else s+c
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,069 |
s498726915 | p04030 | u303059352 | 1551209702 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 72 | s = ''
for c in input():
s = s[:-1] if c == 'B' else s + c
print(s)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,070 |
s043589453 | p04030 | u503228842 | 1551068078 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 146 | s = list(input())
w =[]
for i in s:
if i == "B":
if len(w) !=0:
w.pop(-1)
else:
w.append(i)
print("".join(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,206,071 |
s394290664 | p04030 | u275934251 | 1551049469 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 241 | s=list(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:
pass
else:
ans.pop(-1)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,072 |
s890985420 | p04030 | u887207211 | 1550982057 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | S = input()
ans = ''
for s in S:
if(s == 'B'):
if(ans != ''):
ans = ans[:-1]
else:
ans += s
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,073 |
s873152051 | p04030 | u076503518 | 1550957173 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 170 | s = input()
stack = []
for c in s:
if c == 'B':
if len(stack) == 0: continue
else: stack.pop()
else:
stack.append(c)
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,206,074 |
s940933487 | p04030 | u007550226 | 1550859181 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | w = []
for c in input():
if c == 'B':
if len(w) != 0:w.pop()
else:w.append(c)
print(''.join(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,206,075 |
s873375194 | p04030 | u812973725 | 1550741139 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 162 | S = list(raw_input())
ans = []
for i in S:
if i != 'B':
ans.append(i)
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,206,076 |
s817334544 | p04030 | u543954314 | 1550693570 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 141 | s = input()
ans = []
for i in s:
if i == "B":
try:
ans.pop()
except:
pass
else:
ans.append(i)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,077 |
s055030531 | p04030 | u796942881 | 1550638311 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 215 | from collections import deque
s = input()
q = deque()
for c in s:
if c == 'B':
if q:
q.pop()
else:
q.append(c)
for i in range(len(q)):
print(q.popleft(), end='')
print()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,078 |
s063412665 | p04030 | u610232844 | 1550613482 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 192 | s = list(map(str,input()))
l = []
for i in s:
if i == '0':
l.append(i)
elif i == '1':
l.append(i)
elif i == 'B' and len(l) != 0:
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,206,079 |
s337048318 | p04030 | u492030100 | 1550610893 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 127 | s=input()
while s.replace('0B','').replace('1B','') != s:
s=s.replace('0B', '').replace('1B', '')
print(s.replace('B','')) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,206,080 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.