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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s670897922 | p04030 | u979552932 | 1588438789 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 153 | s = input()
q = []
for i in range(len(s)):
if s[i] == 'B':
if q != []:
q.pop()
else:
q.append(s[i])
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,781 |
s092438691 | p04030 | u459150945 | 1588392304 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 187 | s = input()
ans = []
for key in s:
try:
if key == 'B':
ans.pop()
else:
ans.append(key)
except IndexError:
pass
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,782 |
s502625308 | p04030 | u212328220 | 1588363358 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 257 | s = input()
strings = ''
for str in s:
if str == '0':
strings += '0'
elif str == '1':
strings += '1'
elif str == 'B':
if len(strings) > 0:
strings = strings[:-1]
else:
pass
print(strings) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,783 |
s342801147 | p04030 | u417959834 | 1588362000 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 254 | #! python3
def main():
s = input()
ans = ""
r = len(s)
for i in range(r):
if s[i] == "0":
ans += "0"
elif s[i] == "1":
ans += "1"
else:
ans = ans[:-1]
print(ans)
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,784 |
s738551289 | p04030 | u272522520 | 1588282183 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 189 | s = input()
N = len(s)
Ans = ""
for i in range(N):
if s[i]=="0":
Ans = Ans + "0"
elif s[i]=="1":
Ans = Ans + "1"
else:
Ans = Ans[:-1]
print(Ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,785 |
s625365775 | p04030 | u644516473 | 1588280884 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | s = input()
ans = ''
for i in s:
if not ans and i == 'B':
continue
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,786 |
s639235567 | p04030 | u159994501 | 1588278377 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 171 | s = input()
ans = ""
for i in s:
if i == "0":
ans += "0"
elif i == "1":
ans += "1"
else:
if ans:
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,787 |
s410364743 | p04030 | u940533000 | 1588277563 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 247 | s = input()
out_s = []
for i in range(len(s)):
if s[i] == '0' or s[i] == '1':
out_s.append(s[i])
elif s[i] == 'B':
if len(out_s) != 0:
del out_s[-1]
tmp = ''
for i in range(len(out_s)):
tmp += out_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,788 |
s604874436 | p04030 | u431068320 | 1588250343 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 246 | if __name__ == '__main__':
cmd = input()
ans = []
for char in cmd:
if char == 'B':
if len(ans) > 0 :
ans.pop()
else:
ans.append(char)
for c in ans:
print(c,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,789 |
s624565901 | p04030 | u822044226 | 1588244340 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | s = input()
t = ""
for i in s:
if i == '0':
t += '0'
elif i == '1':
t += '1'
elif i == 'B' and t != "":
t = t[:-1]
else:
continue
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,790 |
s129086427 | p04030 | u560867850 | 1588231710 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 142 | s = input()
ans = []
for c in s:
if c == "B":
if ans:
ans.pop()
else:
ans.append(c)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,791 |
s295725845 | p04030 | u320763652 | 1588191843 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 175 | s = input()
out =''
for i in s:
if i == '0':
out +='0'
elif i == '1':
out +='1'
else:
if out != '':
out = out[:-1]
print(out) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,792 |
s417856867 | p04030 | u726872801 | 1588188578 | Python | Python (3.4.3) | py | Accepted | 24 | 3572 | 448 | import sys
import heapq, math
from itertools import zip_longest, permutations, combinations, combinations_with_replacement
from itertools import accumulate, dropwhile, takewhile, groupby
from functools import lru_cache
from copy import deepcopy
S = input()
ans = [''] * len(S)
cur = 0
for s in S:
if s == '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,793 |
s542981391 | p04030 | u479638406 | 1588177895 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 242 | def solve():
s = list(input())
ans = []
for i in range(len(s)):
if s[i] != 'B':
ans.append(s[i])
elif s[i] == 'B' and ans:
ans.pop(len(ans)-1)
return ''.join(ans)
print(solve())
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,794 |
s118111474 | p04030 | u103178403 | 1588123871 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 78 | a=input()
s=""
for i in a:
if i=="B":
s=s[:-1]
else:
s+=i
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,795 |
s782401650 | p04030 | u121698457 | 1588120558 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | s = input()
r = ""
for x in s:
if x == "B":
r = r[:-1]
else:
r += x
print(r) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,796 |
s512915995 | p04030 | u770077083 | 1588120001 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 82 | s = ""
for c in input():
s = s + c if c == "0" or c == "1" else 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,797 |
s882217459 | p04030 | u752898745 | 1588058863 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 136 | 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,204,798 |
s289129738 | p04030 | u199459731 | 1588053098 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 366 | character_list = list(input())
new_character_list = []
for i in range(len(character_list)):
if(character_list[ i ] == '0' ):
new_character_list.append(character_list[ i ])
elif(character_list[ i ] == '1'):
new_character_list.append(character_list[ i ])
else:
if(len(new_character_list) != 0):
new_character_... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,799 |
s343952897 | p04030 | u301624971 | 1588043833 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 351 | def myAnswer(s:list)->str:
ans = []
for string in s:
if(string == "B"):
if(ans == []):
continue
else:
ans.pop()
else:
ans.append(string)
return "".join(ans)
def modelAnswer():
return
def main():
s = list(input())
print(myAnswer(s))
if __... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,800 |
s171720517 | p04030 | u095094246 | 1588040909 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 112 | ss=list(input())
r=''
for i, s in enumerate(ss):
if s != 'B':
r+=s
elif len(r)>0:
r=r[:-1]
print(r)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,801 |
s801270890 | p04030 | u502731482 | 1588039996 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 196 | s = input()
ans = []
for i in range(len(s)):
if s[i] == "0" or s[i] == "1":
ans.append(s[i])
elif s[i] == "B" and ans != []:
del ans[len(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,802 |
s800330021 | p04030 | u655622461 | 1588028957 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 101 | s = input()
x = ''
for i in s:
if i == 'B':
x = x[:-1]
else:
x += i
print(x)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,803 |
s399282290 | p04030 | u277312083 | 1588013333 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 204 | s = input()
ans = ""
while len(s) > 1:
t = s[0]
s = s[1:]
if t == "B":
ans = ans[:-1]
else:
ans += t
t = s[0]
if t == "B":
ans = ans[:-1]
else:
ans += t
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,804 |
s676942346 | p04030 | u171803978 | 1587943322 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 356 | s = str(input())
s_list = list(s)
answer = []
for i in range(len(s_list)):
if s_list[i] == '0':
answer.append('0')
elif s_list[i] == '1':
answer.append('1')
elif s_list[i] == 'B':
if len(answer) != 0:
answer.pop(-1)
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,805 |
s892005158 | p04030 | u614984376 | 1587940126 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 153 | s=list(input())
ans=str()
for i in s:
if i=="0":
ans+="0"
elif i=="1":
ans+="1"
elif i=="B":
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,806 |
s524435472 | p04030 | u047485390 | 1587939472 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 185 | s = input()
a = []
for i in range(len(s)) :
if s[i] == '0' :
a.append(0)
elif s[i] =='1' :
a.append(1)
elif s[i] == 'B' :
if len(a)>0 :
a.pop()
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,807 |
s033683339 | p04030 | u308918401 | 1587939390 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 149 | a=input()
ans=""
while len(a)>0:
if a[0]=="0":
ans+="0"
elif a[0]=="1":
ans+="1"
elif len(ans)>0:
ans=ans[:-1]
a=a[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,808 |
s380121655 | p04030 | u114641312 | 1587933578 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 973 | # from math import factorial,sqrt,ceil,gcd
# from itertools import permutations as permus
# from collections import deque,Counter
# import re
# from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize=1000)
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)
# impor... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,809 |
s463934272 | p04030 | u934442292 | 1587920740 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 271 | import sys
input = sys.stdin.readline
def main():
s = input().rstrip()
ans = ""
for i in range(len(s)):
if s[i] in ["0", "1"]:
ans += s[i]
else:
ans = ans[:-1]
print(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,810 |
s780800293 | p04030 | u032484849 | 1587907272 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 207 | s=input()
a=[]
for i in range(len(s)):
if s[i]=="0":
a.append(str(0))
elif s[i]=="1":
a.append(str(1))
elif s[i]=="B":
if len(a)>0:
a.pop(-1)
print("".join(a)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,811 |
s120031863 | p04030 | u724687935 | 1587870252 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 143 | S = input()
ans = []
for s in S:
if s == 'B':
if ans:
ans.pop(-1)
else:
ans.append(s)
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,812 |
s813901867 | p04030 | u115877451 | 1587849314 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 124 | a=input()
b=''
for i in a:
if i=='0':
b+='0'
elif i=='1':
b+='1'
else:
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,813 |
s848504767 | p04030 | u760391419 | 1587831786 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | ans = ""
for c in input():
if c == "0": ans += "0"
elif c == "1": ans += "1"
else: ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,814 |
s114498582 | p04030 | u027685417 | 1587802689 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | s = input()
A = []
for c in s:
if c == "0":
A.append("0")
elif c == "1":
A.append("1")
elif A:
A.pop()
print("".join(A))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,815 |
s676725040 | p04030 | u151785909 | 1587796660 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 126 | s = input()
l=len(s)
a = []
for i in range(l):
if s[i]=='B':
a=a[:-1]
else:
a+=s[i]
print("".join(a)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,816 |
s623909145 | p04030 | u969850098 | 1587794305 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 127 | S = input()
d = []
for s in S:
if s == '0' or s == '1':
d.append(s)
else:
d = d[:-1]
print(*d, 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,817 |
s660428501 | p04030 | u915647268 | 1587792847 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 198 | from collections import deque
command = list(input())
d = deque([])
for i in command:
if i == "B" and d:
d.pop()
elif i == "0" or i == "1":
d.append(i)
for s in d:
print(s, 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,818 |
s678576245 | p04030 | u105124953 | 1587777993 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 203 | s = input()
li = list(s)
tmp = []
for l in li:
if l == '0':
tmp.append(l)
elif l == '1':
tmp.append(l)
else:
if len(tmp)>0:
tmp.pop(-1)
print(''.join(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,819 |
s660915421 | p04030 | u189479417 | 1587751002 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | 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,820 |
s365464059 | p04030 | u886747123 | 1587715880 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "B":
if ans:
ans = ans[:-1]
else:
ans += s[i]
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,821 |
s448684826 | p04030 | u388927326 | 1587696139 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 260 | #!/usr/bin/env python3
def main():
s = input()
res = []
for c in s:
if c == "B":
if len(res) > 0:
res.pop()
else:
res.append(c)
print("".join(res))
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,822 |
s300580346 | p04030 | u796842765 | 1587691709 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 210 | S = list(input())
edita = []
for a in S:
if a == "B":
if not edita:
continue
else:
edita.pop()
else:
edita.append(a)
for a in edita:
print(a, 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,823 |
s884598758 | p04030 | u011062360 | 1587683464 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 182 | list_S = list(input())
ans = []
for s in list_S:
if s == "B" and len(ans) != 0:
ans.pop(-1)
else:
if s != "B":
ans.append(s)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,824 |
s195053090 | p04030 | u437215432 | 1587667887 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | s = input()
t = []
for i in s:
if i != 'B':
t.append(i)
elif len(t) != 0:
t.pop(len(t)-1)
print(''.join(t))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,825 |
s227509622 | p04030 | u798260206 | 1587659047 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 218 | s = list(input())
answer = []
for i in s:
if i == "B":
try:
answer.pop()
except:
pass
else:
answer.append(i)
print("".join(answer)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,826 |
s666306209 | p04030 | u798260206 | 1587658900 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 229 | s = list(input())
answer = []
for i in s:
if i == "B":
try:
answer.pop()
except IndexError:
pass
else:
answer.append(i)
print("".join(answer)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,827 |
s225260198 | p04030 | u792512290 | 1587649017 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 159 | s = list(input())
ans = []
for i in s:
if i == 'B':
try:
ans.pop()
except IndexError:
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,828 |
s121568094 | p04030 | u068750695 | 1587589657 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 195 | s=input()
a=""
for i in range(len(s)):
if s[i]=="0":
a+="0"
elif s[i]=="1":
a+="1"
elif len(a)!=0 and s[i]=="B":
a=a[0:-1]
else:
continue
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,829 |
s290164842 | p04030 | u863442865 | 1587573213 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 678 | def main():
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,830 |
s937103075 | p04030 | u252964975 | 1587562885 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 160 | S=str(input())
str_ = ""
for i in range(len(S)):
if S[i] == "0" or S[i] == "1":
str_ = str_ + S[i]
elif len(str_) != 0:
str_ = 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,831 |
s593299051 | p04030 | u581603131 | 1587561517 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 197 | s = input()
t = ''
for i in range(len(s)):
if s[i] == '0':
t = t + '0'
elif s[i] == '1':
t = t + '1'
elif s[i] == 'B' and len(t) != 0:
t = t[0:len(t)-1]
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,832 |
s554851916 | p04030 | u870518235 | 1587521386 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 175 | S = str(input())
res = ""
for i in range(len(S)):
if S[i] == "1":
res += "1"
elif S[i] == "0":
res += "0"
else:
res = res[:-1]
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,833 |
s097038934 | p04030 | u901598613 | 1587517415 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 149 | N=input()
c=""
for i in N:
if i=="0":
c+="0"
elif i=="1":
c+="1"
elif i=="B" and len(c)!=0:
c=c[0:-1]
print(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,834 |
s011655209 | p04030 | u519923151 | 1587502139 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 262 | s = input()
slist = list(s)
res = ""
for i in slist:
if i =="0":
res = res +"0"
elif i == "1":
res = res+"1"
elif i == "B":
if len(res)==0:
pass
else:
res = res[:-1]
print(res) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,835 |
s495516648 | p04030 | u652656291 | 1587487625 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 76 | t=""
for x in input():
if x=="B":
t=t[:-1]
else:t+=x
print(t)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,836 |
s665661568 | p04030 | u652656291 | 1587487599 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 67 | i=input();a=""
for x in i:
if x=="B":a=a[:-1]
else:a+=x
print(a)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,837 |
s106850265 | p04030 | u141419468 | 1587482084 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 207 | s = str(input())
ans = []
for i in range(len(s)):
if s[i] == '1':
ans.append('1')
elif s[i] == '0':
ans.append('0')
elif s[i] == 'B':
ans = ans[:-1]
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,838 |
s649834271 | p04030 | u306950978 | 1587442545 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 202 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "1":
ans += "1"
elif s[i] == "0":
ans += "0"
elif s[i] == "B":
t = len(ans)
ans = ans[:t-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,839 |
s530404402 | p04030 | u239653493 | 1587438615 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 209 | s=input()
n=len(s)
k=""
t=0
for i in range(n):
if s[i]=="B" and t!=0:
k=k[:-1]
t=t-1
if s[i]=="0":
k=k+"0"
t=t+1
if s[i]=="1":
k=k+"1"
t=t+1
print(k) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,840 |
s570251056 | p04030 | u021548497 | 1587436434 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 150 | s = input()
ans = []
for i in range(len(s)):
key = s[i]
if key == "B":
if ans:
ans.pop()
else:
ans.append(key)
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,841 |
s355461064 | p04030 | u461833298 | 1587435249 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 147 | S = input()
tmp = []
for s in S:
if s=='B':
if len(tmp) != 0:
tmp.pop()
else:
tmp.append(s)
print(*tmp, 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,842 |
s610072623 | p04030 | u239772565 | 1587434689 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 218 | s = input()
from collections import deque
dq = deque()
for i in range(len(s)):
if s[i] == "B":
if len(dq) == 0:
continue
dq.pop()
continue
dq.append(s[i])
print("".join(dq))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,843 |
s728051180 | p04030 | u060793972 | 1587411320 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | s=''
for i in input():
if i!='B':
s+=i
else:
if s!='':
s=s[:-1]
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,844 |
s612894751 | p04030 | u379794022 | 1587399462 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 359 | #!/usr/local/bin python
# -*- coding: utf-8 -*-
#
# ~/PycharmProjects/atcoder/B-BinaryHackEasy.py
#
s = input()
ans = []
for i in range(len(s)):
# print("tmp {}".format(s[0]))
tmp = s[0]
s = s[1:]
if tmp == "B" and ans:
ans.pop()
elif tmp !="B":
ans.append(tmp)
# 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,845 |
s765298867 | p04030 | u810978770 | 1587397712 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | n = input()
ans = ""
for s in list(n):
if s == "B":
ans = ans[:-1]
else:
ans += s
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,846 |
s386832122 | p04030 | u318024671 | 1587335674 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 191 | s = input()
string = ""
for i in s:
if i == "0":
string += "0"
elif i == "1":
string += "1"
elif i == "B":
string = string[0:len(string) - 1]
print(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,847 |
s844885745 | p04030 | u751717561 | 1587313595 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 209 | s = input()
ans = []
for i in s:
if i == '0':
ans.append(0)
elif i == '1':
ans.append(1)
else:
if len(ans) > 0:
del ans[-1]
for i in ans:
print(i, end='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,848 |
s966824546 | p04030 | u015467545 | 1587277429 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | s=input()
x=""
for i in range(len(s)):
if len(x)==0 and s[i]=="B":
continue
else:
if s[i]=="B":
x=x[:-1]
else:
x+=s[i]
print(x) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,849 |
s667326547 | p04030 | u535423069 | 1587219011 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 808 | import sys
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
ni = lambda: int(ns())
nin = lambda y: [ni() for _ in range(y)]
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda y: [na() for _ in range(y)]
nf = lambda: float(ns())
nfn = lambda y: [nf() for _ in range(y)]
nfa ... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,850 |
s863234815 | p04030 | u340781749 | 1587192345 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | s = input()
t = []
for c in s:
if c == '0':
t.append('0')
elif c == '1':
t.append('1')
elif t:
t.pop()
print(''.join(t))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,851 |
s190262797 | p04030 | u975644365 | 1587167672 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 283 | def scanning(s):
def resolve(s, ans):
if s == '':
return ans
elif s[0] == 'B' and len(ans) >= 0 :
ans = ans[0:-1]
else:
ans += s[0]
return resolve(s[1::], ans)
return resolve(s, '')
print(scanning(input())) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,852 |
s724003961 | p04030 | u638902622 | 1587086907 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 422 | import sys
IS = lambda: sys.stdin.readline().rstrip()
II = lambda: int(IS())
MII = lambda: list(map(int, IS().split()))
MIIZ = lambda: list(map(lambda x: x-1, MII()))
from collections import deque
def main():
s = IS()
dq = deque()
for c in s:
if c == 'B':
if dq: dq.pop()
els... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,853 |
s771526463 | p04030 | u898058223 | 1587069801 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 169 | from collections import deque
s=input()
l=deque()
for i in range(len(s)):
if s[i]=="B":
if len(l)>0:
l.pop()
else:
l.append(s[i])
l="".join(l)
print(l) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,854 |
s090823445 | p04030 | u707124227 | 1587057015 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 161 | s=input()
ans=''
for i in range(len(s)):
if ans!='' and s[i]=='B':
ans=ans[:len(ans)-1]
elif s[i]=='0'or s[i]=='1':
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,855 |
s822343677 | p04030 | u068595072 | 1587022321 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 184 | s = input()
ans = []
for i in s:
if i == "1":
ans += [1]
elif i == "0":
ans += [0]
elif len(ans) > 0:
ans.pop(-1)
for x in ans:
print(x, 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,856 |
s396118426 | p04030 | u848667447 | 1587009832 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 232 | s = input()
a = []
for i in range(len(s)):
if s[i] == '0':
a.append('0')
elif s[i] == '1':
a.append('1')
elif s[i] == 'B':
if bool(a):
a.pop(-1)
result = ''.join(a)
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,857 |
s693353613 | p04030 | u576432509 | 1587001024 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 259 | icase=0
if icase==0:
s=list(input())
p=""
for i in range(len(s)):
if s[i]=="0":
p=p+"0"
elif s[i]=="1":
p=p+"1"
elif s[i]=="B":
if p!="":
p=p[0:len(p)-1]
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,204,858 |
s813769657 | p04030 | u998082063 | 1586994948 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 111 | 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,859 |
s855262367 | p04030 | u342456871 | 1586989543 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 182 | 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,204,860 |
s418713450 | p04030 | u959225525 | 1586989338 | Python | Python (3.4.3) | py | Accepted | 20 | 2940 | 208 | s=input()
ans=[]
for i in s:
if i=="0":
ans.append(0)
elif i=="1":
ans.append(1)
else:
if ans==[]:
pass
else:
ans.pop()
print(*ans,sep="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,861 |
s893487315 | p04030 | u742899538 | 1586983175 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | s = input()
result = ''
for c in s:
if c == '0' or c == '1':
result += c
elif c == '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,862 |
s128515101 | p04030 | u566321790 | 1586980032 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 170 | n = str(input())
ans = ''
for i in range(len(n)):
if n[i] == 'B':
ans = ans[:-1]
elif n[i] == '0':
ans += '0'
elif n[i] == '1':
ans += '1'
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,863 |
s889433353 | p04030 | u197968862 | 1586977284 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 184 | s = input()
ans = ''
for i in range(len(s)):
if s[i] == 'B':
ans = ans[:-1]
elif s[i] == '0':
ans += '0'
else:
ans += '1'
#print(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,204,864 |
s832181740 | p04030 | u667472448 | 1586976772 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 182 | 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 = 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,865 |
s370638626 | p04030 | u556161636 | 1586958375 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | arg=input()
ans=[]
for char in arg:
if char=='1' or char=='0':
ans.append(char)
elif char=='B':
if ans!=[]:
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,866 |
s940947230 | p04030 | u469392996 | 1586931217 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 235 | s = input()
L = len(s)
ans = ""
for i in range(L):
if s[i] == '1':
ans += "1"
elif s[i] == '0':
ans += "0"
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,867 |
s481487362 | p04030 | u568789901 | 1586919326 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 226 | s=input()
L=len(s)
ans=""
for i in range(0,L):
if s[i]=="0":
ans+="0"
elif s[i]=="1":
ans+="1"
elif s[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,204,868 |
s045761462 | p04030 | u375695365 | 1586896512 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 202 | s=str(input())
ans=""
count=0
for i in range(len(s)-1,-1,-1):
if s[i]=="B":
count+=1
else:
if count!=0:
count-=1
else :
ans+=s[i]
print(ans[::-1]) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,869 |
s123805386 | p04030 | u515647766 | 1586895747 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | def function(s):
ans = ""
for i in s:
if i != "B":
ans += i
else:
ans = ans[:len(ans) - 1]
return ans
s = input()
print(function(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,870 |
s285169688 | p04030 | u849229491 | 1586881177 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 216 | s = list(input())
a = []
# print(s)
for i in range(len(s)):
if s[i]== "0":
a.append("0")
elif s[i] == "1":
a.append("1")
else:
if len(a)> 0:
a.pop()
print("".join(a)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,871 |
s342112405 | p04030 | u246343119 | 1586849641 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 163 | s = input()
ans = []
for c in s:
if c == '0' or c == '1':
ans.append(c)
elif c == 'B' and len(ans) != 0:
ans.pop()
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,872 |
s894812578 | p04030 | u423665486 | 1586835809 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | def resolve():
s = input()
ans = []
for i in s:
if i == '0' or i == '1':
ans.append(i)
else:
if len(ans):
ans.pop()
print("".join(ans))
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,873 |
s879941518 | p04030 | u396961814 | 1586835685 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 191 | S = input()
ans = []
for s in S:
if s == '0':
ans += '0'
elif s == '1':
ans += '1'
else:
if len(ans) != 0:
ans = ans[:-1]
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,874 |
s504849963 | p04030 | u748311048 | 1586827632 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 211 | s = str(input())
ans = str()
for ch in s:
if ch == '0':
ans += '0'
elif ch == '1':
ans += '1'
elif ch == 'B':
if len(ans) != 0:
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,875 |
s565274922 | p04030 | u872538555 | 1586811518 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 204 | s = input()
editor = ''
for word in s:
if word == '0':
editor = editor + '0'
elif word == '1':
editor = editor + '1'
else:
editor = editor[:-1]
print(editor) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,876 |
s695177800 | p04030 | u289162337 | 1586803346 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 150 | 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,204,877 |
s938258535 | p04030 | u568789901 | 1586749790 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 293 | s=input()
ans='w'*60
for i in range(0,len(s)):
if s[i]=='0':
ans+='0'
elif s[i]=='1':
ans+='1'
elif s[i]=='B':
ans=ans[:-1]
else:
pass
A=s.count('0')
B=s.count('1')
C=s.count('B')
for j in range(0,60+A+B-C):
ans=ans.lstrip('w')
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,878 |
s177865494 | p04030 | u835283937 | 1586733964 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 256 | def main():
s = input()
display = list()
for i in range(len(s)):
if s[i] == "B" :
if len(display) > 0:
display.pop()
else:
display.append(s[i])
print("".join(map(str,display)))
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,879 |
s324930566 | p04030 | u891217808 | 1586728359 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | s = input()
rslt = ''
for i in s:
if i == 'B':
rslt = rslt[:-1]
else:
rslt += i
print(rslt) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,880 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.