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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s572399592 | p04030 | u709799578 | 1592002563 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 209 | s = list(input())
ans = []
for v in s:
if v == '0':
ans.append('0')
elif v == '1':
ans.append('1')
elif v == 'B':
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,204,581 |
s285287565 | p04030 | u124212130 | 1591970675 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | 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,204,582 |
s656089733 | p04030 | u781262926 | 1591944737 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 105 | S = []
for c in input():
if c == 'B':
if S:
S.pop()
else:
S.append(c)
print(*S, sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,583 |
s926742193 | p04030 | u750651325 | 1591910374 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 338 | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 11 17:09:47 2020
@author: sd18016
"""
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()
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,204,584 |
s470704753 | p04030 | u771167374 | 1591899731 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 199 | s = list(input())
l = []
for i in s :
if i == '0':
l.append('0')
elif i == '1':
l.append('1')
elif len(l)>0:
l.pop()
else :
continue
print(''.join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,585 |
s266204221 | p04030 | u500376440 | 1591898790 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 181 | s=input()
ans=list()
for i in range(0,len(s)):
if s[i]=="B":
if len(ans)!=0:
del ans[-1]
else:
ans.append(s[i])
for i in range(0,len(ans)):
print(ans[i],end="")
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,586 |
s048293443 | p04030 | u376754170 | 1591887495 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 112 | s = input()
ans = ""
for i in s:
if i == "B":
ans = ans[:-1]
else:
ans += i
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,587 |
s207634813 | p04030 | u107269063 | 1591845934 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | s = input()
ans = ""
for i in s:
if i=="B":
ans = ans[:-1]
else:
ans += i
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,588 |
s527944077 | p04030 | u583799976 | 1591843209 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 143 | a=input()
b=''
for i in range(len(a)):
if a[i]=='0':
b=b+'0'
elif a[i]=='1':
b=b+'1'
else:
if b!='':
b=b[:-1]
print(b) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,589 |
s260725454 | p04030 | u820839927 | 1591828100 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 198 | import os, sys, re, math
S = input()
ret = ""
for s in S:
if s == '0':
ret = ret + s
if s == '1':
ret = ret + s
if s == 'B':
ret = ret[:len(ret)-1]
print(ret)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,590 |
s350816877 | p04030 | u074294821 | 1591794950 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 172 | l = list(input())
ans = []
for i in range(len(l)):
if l[i] == 'B':
if len(ans) > 0:
ans.pop()
else:
ans.append(l[i])
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,591 |
s388997041 | p04030 | u958506960 | 1591754195 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 136 | s = input()
ans = []
for i in s:
if i == 'B' and ans:
ans.pop()
elif i != 'B':
ans.append(i)
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,592 |
s692263804 | p04030 | u636684559 | 1591735059 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 146 | s=input()
ans=''
for i in s:
if i=='0':
ans=ans+'0'
elif i=='1':
ans=ans+'1'
else:
if len(ans)!=0:
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,593 |
s160008203 | p04030 | u667472448 | 1591731333 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 146 | s=''
x=input()
for i in range(len(x)):
if x[i]=='B' and len(s)!=0:s = s[:-1]
elif x[i]=='B' and len(s)==0:pass
else:s += x[i]
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,594 |
s414497244 | p04030 | u212831449 | 1591713284 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 229 | import collections
s = list(input())
q = collections.deque()
for i in s:
if i == "0":
q.append("0")
elif i == "1":
q.append("1")
else:
if len(q) > 0:
q.pop()
print("".join(q))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,595 |
s347319294 | p04030 | u896263178 | 1591710783 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | s = input()
out = ''
for c in s:
if c != 'B':
out += c
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,204,596 |
s528257797 | p04030 | u453642820 | 1591703187 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 142 | S=input()
T=[]
for i in range(len(S)):
if S[i]!="B":
T.append(S[i])
else:
if T:
del T[-1]
print(*T,sep="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,597 |
s709295575 | p04030 | u272525952 | 1591688036 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 178 | s=input()
l=[]
for i in s:
if i=='0':
l.append(0)
elif i=='1':
l.append(1)
else:
if l!=[]:
l.pop()
for j in l:
print(j,end='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,598 |
s821596779 | p04030 | u957957759 | 1591672837 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 201 | s=input()
l=[]
for i in range(len(s)):
if s[i]=='0':
l.append('0')
elif s[i]=='1':
l.append('1')
else:
if len(l)>0:
l.pop(len(l)-1)
x=''.join(l)
print(x) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,599 |
s431178660 | p04030 | u065099501 | 1591648600 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | S = input()
while True:
if '0B' in S or '1B' in S:
S = S.replace('0B','').replace('1B','')
else:
S = S.replace('B','')
break
print(S) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,600 |
s073379364 | p04030 | u293825440 | 1591639196 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 311 | moji = []
ans=""
s = str(input())
s = list(s)
def keyboard(key,list):
if key == "0":
list.append("0")
elif key == "1":
list.append("1")
elif key == "B" and len(list) != 0:
list.pop(-1)
for i in range(len(s)):
keyboard(s[i],moji)
for x in moji:
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,204,601 |
s972758247 | p04030 | u143051858 | 1591626880 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 200 | s = input()
st =''
for i in range(len(s)):
if s[i] == '0':
st += '0'
elif s[i] == '1':
st += '1'
elif s[i] == 'B' and len(st) != 0:
st = st[0:len(st)-1]
print(st) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,602 |
s255010413 | p04030 | u806403461 | 1591551756 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 227 | s = input()
length = len(s)
ans = ''
for a in range(length):
if s[a] == '0':
ans += '0'
elif s[a] == '1':
ans += '1'
elif s[a] == 'B':
if ans != '':
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,603 |
s712882469 | p04030 | u492749916 | 1591517444 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 237 | s = str(input())
disp = ""
for i in range(0, len(s)):
if s[i] == "1":
disp = disp + "1"
if s[i] == "0":
disp = disp + "0"
if s[i] == "B":
if len(disp) != 0:
disp = disp[:-1]
else:
disp == ""
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,204,604 |
s672876993 | p04030 | u213908267 | 1591507130 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 259 | def typing(s) :
t = list()
for i in range(len(s)) :
if s[i] == '0' :
t.append('0')
elif s[i] == '1' :
t.append('1')
else :
if len(t) > 0 :
t.pop()
return t
s = input()
ans = "".join(typing(s))
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,605 |
s059342966 | p04030 | u247830763 | 1591502711 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 166 | s = list(input())
ls = []
for i in range(len(s)):
if s[i] == "B":
if ls != []:
ls.pop(-1)
else:
ls.append(s[i])
print("".join(ls)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,606 |
s902650182 | p04030 | u811436126 | 1591501783 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 183 | s = list(input())
ans = ''
for i in s:
if i == 'B':
if len(ans) > 0:
ans = ans[:-1]
else:
continue
else:
ans += i
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,607 |
s727798836 | p04030 | u587589241 | 1591500455 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 228 | from collections import deque
s=deque(input())
ans=""
while s:
t=s.popleft()
if t=="0":
ans=ans+"0"
elif t=="1":
ans=ans+"1"
elif t=="B":
if len(ans)>0:
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,608 |
s235752218 | p04030 | u193927973 | 1591491487 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 217 | s=list(input())
from collections import deque
ans=deque([])
for p in s:
if p=="0":
ans.append("0")
elif p=="1":
ans.append("1")
elif p=="B":
if ans:
ans.pop()
print("".join(list(ans)))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,609 |
s431008460 | p04030 | u343977188 | 1591490498 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 134 | S=list(str(input()))
d=[]
for i in range(len(S)):
if S[i]!='B':
d.append(S[i])
elif len(d)>0:
d.pop(-1)
print(''.join(d))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,610 |
s066301136 | p04030 | u391589398 | 1591487233 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 122 | S = input()
while 'B' in S:
S = S.replace('1B', '').replace('0B', '')
if S[0] == 'B':
S = S[1:]
print(S)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,611 |
s150542312 | p04030 | u756311765 | 1591481237 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 203 | s = input()
t = ''
for i in s:
if i == '0':
t = t + '0'
elif i == '1':
t = t + '1'
else:
if not t == '':
t = t[:-1]
else:
pass
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,612 |
s971014859 | p04030 | u787059958 | 1591466013 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 241 | from collections import deque
s = input()
d = deque()
for i in range(len(s)):
if (s[i] == 'B' and len(d) != 0):
d.pop()
elif(s[i] == 'B' and len(d) == 0):
continue
else:
d.append(s[i])
print(''.join(d))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,613 |
s065933024 | p04030 | u552738814 | 1591419997 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 233 | word_list = input()
answer = ""
for i in range(len(word_list)):
if word_list[i] == "0":
answer += "0"
elif word_list[i] == "1":
answer += "1"
else:
answer = answer[0:len(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,204,614 |
s690016762 | p04030 | u535171899 | 1591408604 | Python | Python (3.4.3) | py | Accepted | 22 | 3316 | 219 | from collections import deque
s = input()
ans = deque([])
for c in s:
if c=='0':
ans.append('0')
if c=='1':
ans.append('1')
if c=='B' and len(ans)!=0:
del ans[-1]
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,615 |
s509709827 | p04030 | u556589653 | 1591408098 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 160 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "1":
ans += "1"
elif s[i] == "0":
ans += "0"
else:
ans = ans[0:len(ans)-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,616 |
s382285410 | p04030 | u344122377 | 1591388805 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 105 | s = input()
t = ""
for c in s :
if c != 'B' :
t += c
else :
if t : t = t[0:-1]
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,617 |
s488425928 | p04030 | u737840172 | 1591383684 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 288 | # Vicfred
# https://atcoder.jp/contests/abc043/tasks/abc043_b
# simulation
s = input()
display = []
for ch in s:
if ch == '0' or ch == '1':
display.append(ch)
else:
if len(display) > 0:
display.pop()
for ch in display:
print(ch,end='')
print()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,618 |
s263209985 | p04030 | u757274384 | 1591362761 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 192 | # -*- coding : utf-8 -*-
S = str(input())
w = ""
for i in range(len(S)) :
if S[i] == "B" :
if w == "":
w = ""
else :
w = w[:-1]
else :
w = 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,204,619 |
s001217207 | p04030 | u977389981 | 1591281846 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 160 | S = input()
A = []
for s in S:
if s == 'B':
if len(A) != 0:
del A[-1]
else:
A.append(s)
print(''.join(map(str, A))) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,620 |
s707088671 | p04030 | u736474437 | 1591270021 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 156 | s=input()
l=list()
for i in str(s):
if i == "B":
if len(l) > 0:
del l[-1]
else:
continue
else:
l.append(i)
a="".join(l)
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,621 |
s034381940 | p04030 | u822179469 | 1591240883 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 340 | s = list(input())
while "B" in s : #Bが存在する間実行
b = s.index('B') #最初のBのインデックスを取得
if b != 0: # Bが先頭でないとき
del s[b-1:b+1] # Bの1個前とBを消す
elif b == 0: # Bが先頭の時
del s[b]
s = ''.join(s) #この区切り文字でリストを連結
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,622 |
s325482267 | p04030 | u183945517 | 1591223343 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 156 | s = input()
ans = ""
for i in s:
if i == "0":
ans += i
elif i == "1":
ans += i
else:
ans = ans[0:len(ans)-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,623 |
s332605018 | p04030 | u446601167 | 1591187267 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 149 | s = input()
ans = []
for x in s:
if x != "B":
ans.append(x)
else:
if ans != []:
ans.pop()
print(*ans, sep = "") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,624 |
s349153259 | p04030 | u199356004 | 1591166884 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 185 | S=input()
result = []
for c in list(S):
if c == 'B' and len(result)>0:
result.pop(-1)
elif c== 'B':
result = []
else :
result.append(c)
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,204,625 |
s742601577 | p04030 | u366886346 | 1591152945 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 163 | 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,204,626 |
s936720896 | p04030 | u934119021 | 1591108700 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 162 | s = input()
ans = ''
for i in range(len(s)):
if s[i] == '0':
ans += '0'
elif s[i] == '1':
ans += '1'
elif s[i] == 'B':
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,627 |
s132577885 | p04030 | u489124637 | 1591068848 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 230 | S = input()
ans = ""
for i in range(len(S)):
if S[i] == "0":
ans += "0"
elif S[i] == "1":
ans += "1"
else:
if ans == "":
continue
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,628 |
s407397595 | p04030 | u954774382 | 1591048037 | Python | Python (3.4.3) | py | Accepted | 36 | 5120 | 1,097 | import sys
from functools import lru_cache, cmp_to_key
from heapq import merge, heapify, heappop, heappush
from math import *
from collections import defaultdict as dd, deque, Counter as C
from itertools import combinations as comb, permutations as perm
from bisect import bisect_left as bl, bisect_right as br, bisect
f... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,629 |
s207112466 | p04030 | u294385082 | 1591035626 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 192 | s = list(input())
lis = []
for i in s:
if i == 'B':
if len(lis) != 0:
lis.pop()
elif i == '0':
lis.append('0')
elif i == '1':
lis.append('1')
print(''.join(lis))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,630 |
s701296352 | p04030 | u145145077 | 1591010162 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 112 | s=input()
tmp=''
for i in range(len(s)):
if s[i] == 'B':
tmp = tmp[:-1]
else:
tmp += s[i]
print(tmp) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,631 |
s591034937 | p04030 | u663767599 | 1590988035 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 176 | S = input()
text = ""
for s in S:
if s == "0":
text += "0"
elif s == "1":
text += "1"
elif text and s == "B":
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,204,632 |
s767506891 | p04030 | u888092736 | 1590964316 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 143 | ans = []
for c in input():
if c == "B":
if len(ans) > 0:
ans.pop()
else:
ans.append(c)
print("".join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,633 |
s865307194 | p04030 | u556598512 | 1590947393 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 197 | #!/bin/usr/env
S = input()
ans = []
for i,j in enumerate(S):
if (len(ans) != 0) and (j == 'B'):
ans.pop(-1)
elif (j == 'B'):
pass
else:
ans.append(j)
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,634 |
s267941398 | p04030 | u942280986 | 1590944854 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | a=list(input())
s=''
for i in a:
if i == '0':
s=s+'0'
elif i == '1':
s=s+'1'
else:
s=s[0:-1]
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,635 |
s121503378 | p04030 | u125545880 | 1590938218 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 295 | def main():
S = list(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))
if __name__ == "__main__":
main()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,636 |
s976961997 | p04030 | u391442102 | 1590901475 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 177 | s = input()
str = ''
for i in s:
if i == '0':
str = str + '0'
elif i == '1':
str = str + '1'
elif i == 'B' and str != '':
str = str[0:len(str)-1]
print(str)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,637 |
s313032596 | p04030 | u935077683 | 1590857587 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | l = []
for c in input():
if c == "B":
try:
l.pop()
except:
pass
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,204,638 |
s306921728 | p04030 | u941644149 | 1590856301 | Python | Python (3.4.3) | py | Accepted | 16 | 2940 | 167 | S = input()
ans = []
for s in S:
if s=="B":
if len(ans)==0: continue
else: ans.pop()
else:
ans.append(int(s))
ans = map(str, ans)
print("".join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,639 |
s119928559 | p04030 | u349444371 | 1590849103 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 270 | from collections import deque
s=input()
Q=deque()
for i in range(len(s)):
if s[i]=="0":
Q.append("0")
elif s[i]=="1":
Q.append("1")
else:
if len(Q)==0:
pass
else:
Q.pop()
ans="".join(list(Q))
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,640 |
s647257954 | p04030 | u435721973 | 1590816256 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 199 | li = list(input())
line = []
for i in li:
if i == "0":
line.append("0")
elif i == "1":
line.append("1")
else:
if len(line) != 0:
line.pop(len(line) - 1)
print("".join(line)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,641 |
s830074599 | p04030 | u994307795 | 1590760720 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | s = input()
o = []
for i in s:
if i=='B':
if o: o.pop()
else:
o.append(i)
print(*o, sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,642 |
s015330696 | p04030 | u767545760 | 1590720265 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 279 | s = input()
string = []
for i in range(len(s)):
if s[i] == '0':
string.append(str(s[i]))
elif s[i] == '1':
string.append(str(s[i]))
else:
if len(string) == 0:
continue
else:
string.pop(-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,204,643 |
s523858204 | p04030 | u112364985 | 1590703110 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 164 | s=input()
ans=""
for i in s:
if i=="0":
ans+="0"
elif i=="1":
ans+="1"
else:
if len(ans)>=1:
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,644 |
s351900471 | p04030 | u991567869 | 1590691446 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 139 | s = input()
l = []
for i in s:
if i != "B":
l.append(i)
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,204,645 |
s067257372 | p04030 | u472883337 | 1590673245 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 207 | s = input()
ans_list = []
for i in range(len(s)):
if(s[i] != 'B'):
ans_list.append(s[i])
elif(s[i] == 'B' and len(ans_list) != 0):
ans_list.pop()
ans_str = ''.join(ans_list)
print(ans_str) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,646 |
s345936266 | p04030 | u099187672 | 1590642770 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 168 | s = input()
new = ""
for i in s:
if i == "0":
new += i
elif i == "1":
new += i
elif i == "B":
new = new[:-1]
elif i == " ":
pass
print("".join(new))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,647 |
s589100774 | p04030 | u883866798 | 1590614711 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 213 | S = input()
stack = []
for ss in S:
if ss == '0':
stack.append(ss)
elif ss == '1':
stack.append(ss)
elif ss == 'B':
if len(stack):
stack.pop()
print(''.join(stack)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,648 |
s775771708 | p04030 | u597622207 | 1590602396 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 182 | S = list(input())
result = []
for s in S:
if s != "B":
result.append(s)
elif len(result) == 0:
continue
else:
result.pop()
print("".join(result)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,649 |
s016796165 | p04030 | u497952650 | 1590585474 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 176 | 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,204,650 |
s425158944 | p04030 | u048176319 | 1590563400 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 207 | s = input()
l = list()
for i in range(len(s)):
if s[i] == "0":
l.append("0")
elif s[i] == "1":
l.append("1")
else:
if len(l) != 0:
l.pop()
print(''.join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,651 |
s179590212 | p04030 | u552738814 | 1590556312 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 379 | s = input()
s_list = []
input_list = []
for i in range(len(s)):
s_list.append(s[i])
for i2 in range(len(s)):
if s_list[i2] == "0":
input_list.append("0")
elif s_list[i2] == "1":
input_list.append("1")
elif input_list == []:
pass
else:
input_list.pop(-1)
for i3 i... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,652 |
s694309459 | p04030 | u646792990 | 1590550518 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 158 | s = input()
ans = ''
for c in s:
if c == '0':
ans += '0'
if c == '1':
ans += '1'
if c == 'B':
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,653 |
s812807026 | p04030 | u685263709 | 1590513305 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 200 | S = list(str(input()))
ans = []
for i, s in enumerate(S):
if s == 'B':
if ans:
ans.pop()
else:
continue
else:
ans.append(s)
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,654 |
s071492947 | p04030 | u443736699 | 1590455097 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | N = input()
ind = ""
for i in N:
if i == "B":
if ind != "":
ind = ind[0:-1]
else:
ind += str(i)
print(ind) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,655 |
s124967373 | p04030 | u178079174 | 1590454111 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 173 | S = input()
ans = ''
for s in S:
if s == '0':
ans += '0'
elif s == '1':
ans += '1'
elif s == 'B' and ans != '':
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,656 |
s843324935 | p04030 | u594956556 | 1590450804 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 146 | s = input()
ans = ''
for si in s:
if si == 'B':
if ans == '':
continue
else:
ans = ans[:-1]
else:
ans += si
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,657 |
s422403779 | p04030 | u540290227 | 1590433379 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | s = input()
result = ''
for i in s:
if i == 'B':
result = result[:-1]
else:
result = result + i
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,204,658 |
s590210844 | p04030 | u556589653 | 1590427430 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 159 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "1":
ans += "1"
elif s[i] == "0":
ans += "0"
else:
ans = ans[0:len(ans)-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,659 |
s988023111 | p04030 | u255595446 | 1590410965 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 385 | """
N = list(map(int,input().split()))
S = [str(input()) for _ in range(N)]
S = [list(map(int,list(input()))) for _ in range(h)]
print(*S,sep="")
"""
import sys
sys.setrecursionlimit(10**6)
input = lambda: sys.stdin.readline().rstrip()
s = input()
data = []
for x in s:
if x == "B":
try:data.pop()
... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,660 |
s513578275 | p04030 | u879693268 | 1590376289 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 190 | a=list(input())
b=[]
for i in a:
if i=="0":
b.append(i)
if i=="1":
b.append(i)
if i=="B":
if b!=[]:
b.pop(-1)
for j in b:
print(j,end="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,661 |
s271499869 | p04030 | u593567568 | 1590374734 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 195 | S = list(input())
stack = []
for s in S:
if s == '0':
stack.append(0)
elif s == '1':
stack.append(1)
elif s == 'B':
if stack:
stack.pop()
print("".join(map(str,stack)))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,662 |
s467349519 | p04030 | u475966842 | 1590365876 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 198 | import re
key=re.compile('[01]B')
s=input()
result=key.search(s)
while result!=None:
s=s[0:result.start()]+s[result.end():]
result=key.search(s)
while s[0]=='B':
s=s[1:]
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,663 |
s378679247 | p04030 | u203843959 | 1590365276 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 153 | s=list(input())
answer=[]
for c in s:
if c=="B":
if answer:
answer.pop()
else:
answer.append(c)
#print(answer)
print("".join(answer)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,664 |
s890523441 | p04030 | u634873566 | 1590364556 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 215 | from collections import deque
ss = input()
q = deque()
for s in ss:
if s == "B" and len(q) > 0:
q.pop()
elif s == "B" and len(q) == 0:
continue
else:
q.append(s)
print(''.join(q)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,665 |
s044579268 | p04030 | u460386402 | 1590355092 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 218 | s=input()
l=len(s)
a=[]
for i in range(l):
n=len(a)
if s[i]=='0':
a.append(0)
elif s[i]=='1':
a.append(1)
elif s[i]=='B':
if a!=[]:
del a[n-1]
for i in range(len(a)):
print(a[i],end="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,666 |
s235883141 | p04030 | u442877951 | 1590306388 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 199 | S = str(input())
ans = ''
for i in range(len(S)):
if S[i] == '0':
ans += '0'
elif S[i] == '1':
ans += '1'
else:
if ans == '':
pass
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,667 |
s442489290 | p04030 | u057964173 | 1590287588 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 265 | import sys
def input(): return sys.stdin.readline().strip()
def resolve():
s=input()
l=[]
for i in s:
if i=='0' or i=='1':
l.append(i)
else:
if len(l)>=1:
l.pop(-1)
print(''.join(l))
resolve() | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,668 |
s763011856 | p04030 | u057964173 | 1590287427 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 339 | import sys
def input(): return sys.stdin.readline().strip()
def resolve():
s=input()
l=[]
for i in s:
if i=='0':
l.append('0')
elif i=='1':
l.append('1')
else:
if len(l)>=1:
l.pop(-1)
ans=''
for j in l:
ans+=j
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,204,669 |
s108174318 | p04030 | u604655161 | 1590286014 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 350 | def ABC_43_B():
s = input()
t=[]
for i in range(len(s)):
if s[i] == '0':
t.append('0')
elif s[i] == '1':
t.append('1')
else:
if len(t)==0:
a=0
else:
del t[len(t)-1]
print(''.join(t))
if __name__ ... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,670 |
s987320419 | p04030 | u579699847 | 1590209505 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 185 | import sys
def S(): return sys.stdin.readline().rstrip()
s = S()
ans = ''
for x in s:
if x in '01':
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,204,671 |
s555351220 | p04030 | u952708174 | 1590204703 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 128 | S = input()
ans = ''
for ch in S:
if ch in ('0', '1'):
ans += ch
elif ch == 'B' and ans:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,672 |
s298165266 | p04030 | u496821919 | 1590182027 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 181 | S = input()
L = []
for i in S:
if i == "0":
L.append("0")
elif i == "1":
L.append("1")
else:
if L:
L.pop()
print("".join(L))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,673 |
s347896428 | p04030 | u294721290 | 1590120427 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 177 | A = input()
output = []
for a in range(len(A)):
if A[a]=="B":
if not output==[]:
output.pop()
else:
output.append(A[a])
print(*output,sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,674 |
s985819864 | p04030 | u163501259 | 1590108549 | Python | Python (3.4.3) | py | Accepted | 22 | 3444 | 417 | import sys
input = sys.stdin.readline
from collections import deque
def main():
S = list(input().rstrip())
ans = deque()
for c in S:
if c == "B":
if len(ans) == 0:
continue
else:
ans.pop()
elif c == "0":
ans.append(c)
... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,675 |
s483686711 | p04030 | u178432859 | 1590040807 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 212 | s = input()
moji = []
for i in s:
if i == "0":
moji.append("0")
elif i == "1":
moji.append("1")
else:
if len(moji) != 0:
moji.pop(len(moji)-1)
print("".join(moji)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,676 |
s873615675 | p04030 | u416011173 | 1590026320 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 638 | # -*- coding: utf-8 -*-
def get_input() -> str:
"""
標準入力の取得.
Returns:\n
str: 標準入力
"""
s = input()
return s
def main(s: str) -> None:
"""
求解処理.\n
順番に処理を行う.
Args:\n
s (str): しぐが押したキーを順番に記録した文字列
"""
result = str()
for s_i in s:
if s_i == "0":
... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,677 |
s454620260 | p04030 | u416011173 | 1590026132 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 269 | # -*- coding: utf-8 -*-
# 標準入力の取得
s = input()
# 結果出力
result = str()
for s_i in s:
if s_i == "0":
result += "0"
elif s_i == "1":
result += "1"
elif s_i == "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,204,678 |
s571030072 | p04030 | u941047297 | 1590023928 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 210 | S = list(input())
ans = []
for s in S:
if s == '0':
ans.append('0')
elif s == '1':
ans.append('1')
elif len(ans) > 0:
ans.pop()
else:
continue
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,679 |
s052075145 | p04030 | u167647458 | 1590018166 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | 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,204,680 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.