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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s061200078 | p04030 | u977661421 | 1583368831 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 237 | # -*- coding: utf-8 -*-
s = list(str(input()))
n = len(s)
ans = []
for i in range(n):
if s[i] == 'B' and len(ans) != 0:
ans.pop(len(ans) - 1)
elif s[i] == '0' or s[i] == '1':
ans.append(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,205,081 |
s856509440 | p04030 | u393881437 | 1583340990 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 215 | s = input()
result = ''
for i in range(len(s)):
if s[i] == '0':
result += '0'
elif s[i] == 'B':
if result != '':
result = result[:-1]
else:
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,205,082 |
s112552848 | p04030 | u077898957 | 1583335640 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 162 | S = input()
ans = []
for i in range(len(S)):
if S[i]=='B':
if len(ans)>=1:
ans.pop()
else:
ans.append(S[i])
print(*ans,sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,083 |
s982833346 | p04030 | u263824932 | 1583269288 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 303 | S=input()
words=[a for a in S]
answers=[]
for n in words:
if n=='1':
answers.append('1')
elif n=='0':
answers.append('0')
else:
if not answers:
continue
else:
answers.pop()
mojiretu=''
for x in answers:
mojiretu+=x
print(mojiretu)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,084 |
s784584963 | p04030 | u757030836 | 1583266780 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 245 | s = input()
ans = []
for i in range(len(s)):
if s[i] == "0":
ans.append(s[i])
if s[i] == "1":
ans.append(s[i])
if s[i] == "B":
if len(ans) == 0:
continue
else:
del ans[-1]
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,085 |
s541185393 | p04030 | u738322459 | 1583253996 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 157 | s = input()
r = ""
for i in s:
if i == 'B' and r != "":
r = r[0:-1]
elif i == 'B' and r == "":
pass
else:
r += i
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,205,086 |
s651150980 | p04030 | u738341948 | 1583235980 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 263 | s =list(input())
data = []
for i in range(len(s)):
if s[i]=='0':
data.append('0')
elif s[i]=='1':
data.append('1')
elif s[i] =='B':
if len(data)>0:
data.pop()
for i in data:
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,205,087 |
s057488359 | p04030 | u721425712 | 1583212759 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 269 | # B
# 2020/03/03 0:12-
s = list(input())
l = []
for i in range(len(s)):
if s[i] == '0':
l.append('0')
elif s[i] == '1':
l.append('1')
elif s[i] == 'B':
if len(l) > 0:
l.pop()
for v in l:
print(v, 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,205,088 |
s359492839 | p04030 | u923270446 | 1583189995 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 260 | s = list(input())
editor = []
for n in s:
if n == "0":
editor.append("0")
elif n == "1":
editor.append("1")
elif n == "B":
if editor == []:
continue
else:
editor.pop(-1)
print(*editor, sep="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,089 |
s585625804 | p04030 | u857330600 | 1583119989 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 176 | s=str(input())
l=[]
for i in range(len(s)):
if s[i]=='0':
l.append('0')
elif s[i]=='1':
l.append('1')
elif s[i]=='B' and len(l)>0:
l.pop(-1)
print(''.join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,090 |
s166103892 | p04030 | u595289165 | 1583112899 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | s = input()
ans = []
for i in s:
if i == "0" or i == "1":
ans.append(i)
else:
if ans:
ans.pop()
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,091 |
s143201459 | p04030 | u886655280 | 1583105736 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 209 | # https://atcoder.jp/contests/abc043/tasks/abc043_b
s = input()
ans = ''
for i in s:
if i == 'B':
len_ans = len(ans)
ans = ans[0: len_ans-1]
else:
ans = ans + i
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,092 |
s687594486 | p04030 | u428132025 | 1583098035 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 238 | 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:
pass
else:
ans = ans[0:len(ans)-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,093 |
s499235256 | p04030 | u139112865 | 1583023877 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 141 | #043_B
s=input()
t=''
for i in range(len(s)):
if s[i]=='B':
if len(t)!=0:
t=t[:-1]
else:
t+=s[i]
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,094 |
s450229786 | p04030 | u750838232 | 1583008606 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 144 | s = list(input())
ans = ""
while s:
a = s.pop(0)
if a == "B" and len(ans) > 0:
ans = ans[:-1]
elif a != "B":
ans += a
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,095 |
s713629961 | p04030 | u291988695 | 1582937184 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 98 | s=input()
a=""
for k in s:
if k=="B":
if len(a)!=0:
a=a[:-1]
else:
a+=k
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,096 |
s116519893 | p04030 | u620084012 | 1582926262 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 262 | import sys, math
def input():
return sys.stdin.readline()[:-1]
def main():
S = input()
ans = ""
for e in S:
if e == "B":
ans = ans[:-1]
else:
ans += e
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,205,097 |
s891877539 | p04030 | u629557958 | 1582924334 | 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,205,098 |
s350277935 | p04030 | u016901717 | 1582867033 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 105 | t=""
for i in input():
if i=="B":
t=t[:-1]
else:
t+=i
print(t)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,099 |
s699075941 | p04030 | u347640436 | 1582866664 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 148 | 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,205,100 |
s047817536 | p04030 | u347640436 | 1582866493 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 131 | s = input()
t = ''
for c in s:
if c == '0':
t += '0'
elif c == '1':
t += '1'
elif c == 'B':
t = t[:-1]
print(t)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,101 |
s447630604 | p04030 | u088552457 | 1582849910 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 231 | def main():
s = input()
ans = ''
for i, sv in enumerate(list(s)):
if sv == 'B':
ans = ans[:len(ans)-1]
else:
ans += sv
print(ans)
def input_list():
return map(int, input().split())
import math
main() | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,102 |
s035287902 | p04030 | u530383736 | 1582823321 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 189 | # -*- coding: utf-8 -*-
s=input().strip()
s_new=""
for word in s:
if word == "B":
if len(s) != 0:
s_new = s_new[:-1]
else:
s_new += word
print(s_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,205,103 |
s658281121 | p04030 | u022979415 | 1582818544 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 290 | def main():
operations = input()
answer = ""
for operation in operations:
if operation == "B":
if not answer == "":
answer = answer[:-1]
else:
answer += operation
print(answer)
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,205,104 |
s809230887 | p04030 | u242684850 | 1582779938 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 91 | s = input()
t = ''
for x in s:
if x == 'B':
t = t[:-1]
else:
t = t + x
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,105 |
s579965782 | p04030 | u693933222 | 1582692841 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 179 | s = list(input())
ans = []
for i in s:
if (i == "B"):
if(len(ans)!=0):
ans.pop(-1)
else:
ans+=i
for i in ans:
print(i, end="")
print("") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,106 |
s327891187 | p04030 | u368796742 | 1582679992 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 173 | s = input()
ans=[]
for i in s:
if i == "0":
ans.append(0)
elif i == "1":
ans.append(1)
elif i =="B" and 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,205,107 |
s847616478 | p04030 | u644972721 | 1582650805 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 194 | from collections import deque
q = deque()
s = input()
for i in range(len(s)):
if s[i] == "B":
if len(q) != 0:
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,205,108 |
s045515579 | p04030 | u413165887 | 1582633467 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 192 | s = input()
r = ""
for i in range(len(s)):
if s[i]=="0" or s[i] =="1":
r = r+s[i]
else:
if len(r)==0:
continue
else:
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,205,109 |
s645056094 | p04030 | u964299793 | 1582616401 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 160 | s=input()
ans=[]
for i in s:
if i=='0':
ans.append('0')
elif i=='1':
ans.append('1')
else:
if len(ans)>0:
ans.pop()
print("".join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,110 |
s899891782 | p04030 | u620157187 | 1582539612 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 207 | s = list(input())
S = []
for i in s:
if i == 'B':
if S != []:
S.pop(-1)
else:
pass
else:
S.append(i)
S_s = ''
for i in S:
S_s += i
print(S_s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,111 |
s548345040 | p04030 | u768559443 | 1582527149 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 109 | t=[]
for i in input():
if i=="B":
try:t.pop()
except:pass
else:
t.append(i)
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,205,112 |
s386029864 | p04030 | u475675023 | 1582523297 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 106 | s=input()
ans=""
for i in range(len(s)):
if s[i]=="B":
ans=ans[:-1]
else:
ans+=s[i]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,113 |
s881588026 | p04030 | u068584789 | 1582494713 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 141 | keys = input()
r = ""
for k in keys:
if k == "0":
r += "0"
elif k == "1":
r += "1"
elif k == "B":
r = r[:len(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,205,114 |
s784859283 | p04030 | u346812984 | 1582434147 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 222 | S = input()
d = []
for s in S:
if s == "0":
d.append("0")
elif s == "1":
d.append("1")
else:
if len(d) == 0:
pass
else:
_ = 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,205,115 |
s457923260 | p04030 | u734936991 | 1582418471 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | a = input()
ans = ''
for c in a:
if c == '0' or c == '1':
ans += c
elif 'B':
ans = ans[0:len(ans)-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,116 |
s808029927 | p04030 | u208309047 | 1582404388 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 186 | C = []
A = input()
for i in A:
if i == '0':
C.append(i)
if i == '1':
C.append(i)
if i == 'B' and len(C)!=0:
C.pop()
else: pass
print("".join(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,205,117 |
s254466585 | p04030 | u332518246 | 1582345530 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 161 | #B - バイナリハックイージー
# input s
s = input()
out = ''
for str in s:
if str == 'B':
out = out[:-1]
else :
out += str
print(out) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,118 |
s704213836 | p04030 | u896791216 | 1582341257 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 219 | s = input()
result = ""
for letter in s:
if letter == "B":
result = result[:-1]
elif letter == "1":
result = result + letter
elif letter == "0":
result = result + letter
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,205,119 |
s946543998 | p04030 | u454524105 | 1582324051 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 153 | s = [i for i in input()]
a = []
for i in s:
if i == "B":
if a == []: continue
else: a.pop(-1)
else: a.append(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,205,120 |
s937221147 | p04030 | u903005414 | 1582322486 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 156 | S = list(input())
ans = []
for s in S:
if s != 'B':
ans.append(s)
else:
if len(ans) != 0:
ans.pop()
print(''.join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,121 |
s350803200 | p04030 | u734434881 | 1582252004 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | s = input()
result = ''
for i in range(len(s)):
if s[i] == '0' or s[i] == '1':
result += s[i]
else:
if result != '':
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,205,122 |
s553170119 | p04030 | u408375121 | 1582248024 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | s = input()
l = []
for t in s:
if t == '0' or t == '1':
l.append(t)
elif t == 'B':
if l != []:
l.pop()
for r in l:
print(r, 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,205,123 |
s742131869 | p04030 | u881116515 | 1582240305 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 174 | s = list(input())
ans = []
for i in s:
if i == "0":
ans.append("0")
elif i == "1":
ans.append("1")
elif ans and i == "B":
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,205,124 |
s562356251 | p04030 | u095021077 | 1582220521 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 155 | s=input()
ans=''
for i in range(len(s)):
if s[i]=='0':
ans+='0'
elif s[i]=='1':
ans+='1'
else:
if len(s)>0:
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,125 |
s139113361 | p04030 | u237316771 | 1582216476 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 425 | #!/usr/bin/env python3
import sys
def solve(s: str):
z = ""
for c in s:
if c == "B":
z = z[:-1]
else:
z += c
print(z)
def main():
def iterate_tokens():
for line in sys.stdin:
for word in line.split():
yield word
tokens =... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,126 |
s986559860 | p04030 | u639340617 | 1582200035 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 158 | s = input()
ans = []
for i in s:
if i =='B' and len(ans) != 0:
ans.pop()
elif i =='0' or i == '1':
ans.append(i)
print(*ans, sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,127 |
s037935303 | p04030 | u981206782 | 1582177112 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 149 | s=input()
ans=""
for si in s:
if si=="0":
ans=ans+"0"
if si=="1":
ans=ans+"1"
if si=="B":
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,128 |
s997419036 | p04030 | u086503932 | 1582174256 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 129 | s=input()
ans=''
for i in range(len(s)):
if s[i] == 'B':
if len(ans)>0:
ans=ans[:-1]
else:
ans+=s[i]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,129 |
s616407055 | p04030 | u046592970 | 1582135008 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | s = list(input())
ans = []
for i in s:
if i == "B" and ans:
ans.pop()
elif i == "B":
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,205,130 |
s970952981 | p04030 | u674190122 | 1582072996 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 192 | given = [x for x in input()]
rets = []
for i, v in enumerate(given):
if v in ["1", "0"]:
rets += v
elif v == "B" and len(rets) > 0:
rets.pop()
print("".join(rets))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,131 |
s173432136 | p04030 | u434872492 | 1582072512 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 239 | s=input()
ans=""
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:
del l[len(l)-1]
for i in range(len(l)):
ans=ans+l[i]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,132 |
s305170780 | p04030 | u476418095 | 1582071179 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 184 | a=input()
f=[]
for i in a:
if i == "0":
f.append("0")
elif i == "1":
f.append("1")
elif i == "B" and len(f) != 0:
f.pop(len(f)-1)
print("".join(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,205,133 |
s395797335 | p04030 | u747703115 | 1582030264 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 171 | s = input()
ans = ''
for i in range(len(s)):
if s[i]=='B' and ans:
ans = ans[:-1]
elif s[i]=='B':
continue
else:
ans += s[i]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,134 |
s916367983 | p04030 | u627600101 | 1581992152 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 168 | s=input()
for k in range(len(s)//2):
s=s.replace("1B","").replace("0B","")
if s==s.replace("1B","").replace("0B",""):
break
s=s.replace("B","")
print(s) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,135 |
s582137682 | p04030 | u519939795 | 1581977894 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 163 | s = input()
t = ""
for i in range(len(s)):
if s[i] == "B":
if t != "":
t = t[:len(t) - 1]
else:
t += s[i]
print(t) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,136 |
s626522028 | p04030 | u448659077 | 1581919789 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 175 | #ABC043
s = input()
t = ""
for i in range(len(s)):
if s[i] == "B":
if t != "":
t = t[:len(t)-1]
else:
t += s[i]
print(t)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,137 |
s621582840 | p04030 | u217627525 | 1581919477 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 126 | s=input()
ans=""
for i in range(len(s)):
if s[i]!="B":
ans+=s[i]
elif ans!="":
ans=ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,138 |
s825436810 | p04030 | u052221988 | 1581872061 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 236 | wordinput = list(input())
text = ""
for i in range(len(wordinput)) :
if wordinput[i] == "0" :
text += "0"
elif wordinput[i] == "1" :
text += "1"
elif wordinput[i] == "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,205,139 |
s148775001 | p04030 | u151107315 | 1581841685 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 206 | s_str = input()
ans = ""
for s in s_str :
# print(s)
if len(ans) != 0 and s == "B" :
ans = ans[:-1]
elif s == "0" :
ans += "0"
elif s == "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,205,140 |
s881207138 | p04030 | u353099601 | 1581824895 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 182 | # B - バイナリハックイージー
s = input()
ans = []
for key in s:
if key == 'B':
if len(ans) > 0:
del ans[-1]
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,205,141 |
s831955207 | p04030 | u083960235 | 1581814564 | Python | Python (3.4.3) | py | Accepted | 52 | 5576 | 904 | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, floor
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, asci... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,142 |
s748214691 | p04030 | u002023395 | 1581795037 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 99 | s=input()
for i in range(10):
s = s.replace('0B', '').replace('1B', '')
print(s.replace('B', '')) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,143 |
s552094010 | p04030 | u133936772 | 1581751680 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 129 | s = list(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,205,144 |
s365793585 | p04030 | u572142121 | 1581713681 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | a=input()
A=[]
for i in a:
if i=='B'and len(A)>0:
del A[-1]
elif i=='1'or i=='0':
A.append(i)
print(*A,sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,145 |
s046101656 | p04030 | u746419473 | 1581712981 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 199 | *s, = input()
ans = []
for _s in s:
if _s == "0":
ans.append("0")
elif _s == "1":
ans.append("1")
elif _s == "B" and 0 < len(ans):
ans.pop()
print("".join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,146 |
s420960629 | p04030 | u534450736 | 1581711321 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 236 | S = input()
ans = []
for s in S:
if s == "0":
ans.append("0")
elif s == "1":
ans.append("1")
else:
if ans == []:
pass
else:
ans.pop(-1)
print("".join(a for a in ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,147 |
s138937367 | p04030 | u269408023 | 1581709176 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 134 | s = input()
t=[]
for c in s:
if c!='B':
t.append(c)
elif len(t)!=0 :
t.pop()
for c in t:
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,205,148 |
s076066979 | p04030 | u269408023 | 1581709092 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | s = input()
t=[]
for c in s:
if c!='B':
t.append(c)
elif len(t)!=0 :
t.pop()
for i in range(0,len(t)):
print(t[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,205,149 |
s606284391 | p04030 | u287920108 | 1581616947 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 212 | # B - バイナリハックイージー
s = input()
lst = []
for i in s:
if i == 'B' and len(lst) !=0:
lst.pop()
elif i == 'B':
continue
else:
lst.append(i)
print(''.join(lst)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,150 |
s290715081 | p04030 | u996434204 | 1581542647 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 203 | s = input()
ans = []
for ss in s:
if ss == '0':
ans.append('0')
elif ss == '1':
ans.append('1')
else:
if len(ans) >= 1:
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,205,151 |
s597977720 | p04030 | u953794676 | 1581534291 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 190 | e = input()
array = []
for i in e:
if i == 'B':
if len(array) == 0:
pass
else:
array.pop()
else:
array.append(i)
print(''.join(array)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,152 |
s555431498 | p04030 | u670133596 | 1581504585 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 269 | def resolve():
s = input()
ans = []
for char in s:
if char == 'B':
if len(ans) == 0:
continue
else:
ans = ans[:-1]
else:
ans.append(char)
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,205,153 |
s183497146 | p04030 | u080364835 | 1581465199 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 160 | sl = list(input())
ans = []
for s in sl:
if s != 'B':
ans.append(s)
else:
if len(ans) != 0:
ans.pop(-1)
print(*ans, sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,154 |
s483837285 | p04030 | u189487046 | 1581450575 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 188 | s = input()
ans = ""
for word in s:
if word == "0":
ans += "0"
elif word == "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,205,155 |
s995680113 | p04030 | u273010357 | 1581396585 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 166 | s = list(input())
answer = []
for i in s:
if i != 'B':
answer.append(i)
else:
if answer != []:
answer.pop()
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,205,156 |
s503966264 | p04030 | u772649753 | 1581395790 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | s = input()
ans = ""
for i in s:
if i == "B":
if len(ans) > 0:
ans = ans[:-1]
else:
ans = ans + i
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,157 |
s204492614 | p04030 | u103902792 | 1581388701 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 126 | s = input()
ans = ''
for c in s:
if c == 'B':
if len(ans) >0:
ans = ans[:-1]
else:
ans = ans + c
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,158 |
s174035838 | p04030 | u298297089 | 1581388459 | Python | Python (3.4.3) | py | Accepted | 16 | 2940 | 148 | s = input()
tmp = ''
for c in s:
if c == '0':
tmp = tmp + '0'
if c == '1':
tmp = tmp + '1'
if c == 'B':
tmp = tmp[:-1]
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,205,159 |
s049476837 | p04030 | u630027862 | 1581387071 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 182 | Inp = input()
Ext = ''
for val in range(len(Inp)):
if Inp[val] == '0':
Ext += '0'
elif Inp[val] == '1':
Ext += '1'
else:
Ext = Ext[:-1]
print(Ext) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,160 |
s668097158 | p04030 | u241159583 | 1581382487 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 202 | s = input()
ans = []
for i in range(len(s)):
if s[i] == "0":
ans.append("0")
elif s[i] == "1":
ans.append("1")
elif s[i] == "B":
if len(ans) > 0:
ans.pop(-1)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,161 |
s976629979 | p04030 | u045953894 | 1581379540 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 113 | s = input()
t = ''
for i in range(len(s)):
if s[i] == 'B':
t = t[:-1]
else:
t += s[i]
print(t)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,162 |
s301011795 | p04030 | u700705777 | 1581310294 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | s = input()
n = ""
for i in range(len(s)):
if s[i] != 'B':
n = n + s[i]
else:
if len(n) != 0:
n = n[:-1]
print(n) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,163 |
s406226762 | p04030 | u721970149 | 1581262421 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 248 | # 入力 文字列1つ
s = input()
ans = []
for i in range(len(s)) :
if s[i] == "0" :
ans.append("0")
elif s[i] == "1" :
ans.append("1")
else :
if ans :
ans.pop()
name = "".join(ans)
print(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,205,164 |
s843600242 | p04030 | u686036872 | 1581226989 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 176 | S = list(input())
l=[]
for i in S:
if i == "B":
if len(l)==0:
continue
else:
l.pop()
else:
l.append(i)
print(*l, sep="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,165 |
s562544505 | p04030 | u127499732 | 1581145689 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | s=str(input())
while(s.count("B")!=0):
i=s.find("B")
if i!=0:
s=s[:i-1]+s[i+1:]
else:
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,205,166 |
s125385501 | p04030 | u732412551 | 1581015824 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | S = input()
ans = ""
for s in S:
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,205,167 |
s652511719 | p04030 | u961683150 | 1581007433 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 158 | s=list(input())
r=[]
for x in s:
if x=="0":r.append("0")
elif x=="1":r.append("1")
elif x=="B" and len(r)>0:
r.pop()
print("".join(r)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,168 |
s026906269 | p04030 | u131267733 | 1580964452 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 186 | s= input()
list=[]
for i in s:
if i == '0':
list.append('0')
elif i == '1':
list.append('1')
elif i == 'B':
if len(list) != 0:
list.pop(-1)
print("".join(list)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,169 |
s749165679 | p04030 | u374146618 | 1580951899 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 175 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "0":
ans += "0"
elif s[i] == "1":
ans += "1"
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,170 |
s430889704 | p04030 | u143212659 | 1580945141 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 336 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
S = list(input())
reslut = []
for s in S:
if s == 'B' and len(reslut) == 0:
continue
elif s == 'B':
reslut.pop()
else:
reslut.append(s)
print(''.join(reslut))
if __name__ == "__main... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,171 |
s574867721 | p04030 | u885440767 | 1580943417 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 225 | k = str(input())
n = list(k)
l = []
s = ""
for i in n:
if(i == '0'):l.append(i)
if(i == '1'):l.append(i)
if(i == 'B'):
if(len(l)==0):
continue
else:
l.pop()
print(s.join(l)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,172 |
s426649957 | p04030 | u556610039 | 1580938276 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 177 | str = input()
answer = ""
for x in range(len(str)):
if str[x] != "B": answer += str[x]
else:
if len(answer) > 0: 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,205,173 |
s306698362 | p04030 | u751843916 | 1580930898 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 150 | s=list(input())
r=[]
for x in s:
if x=="0":r.append("0")
if x=="1":r.append("1")
if x=="B" and len(r)>0:
r.pop()
print("".join(r)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,174 |
s118913136 | p04030 | u572193732 | 1580927221 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 253 | s = list(input())
ans = []
for i in range(len(s)):
if s[i] == "0":
ans.append("0")
elif s[i] == "1":
ans.append("1")
else:
if len(ans) == 0:
pass
else:
ans.pop(-1)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,175 |
s052678014 | p04030 | u310466455 | 1580916602 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 192 | a = list(input())
answer = []
for i in a:
if i == "1" or i == "0":
answer.append(i)
else:
if not answer :
continue
else:
del answer[-1]
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,205,176 |
s530651745 | p04030 | u857428111 | 1580867096 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 156 | s=input()
ans=[]
for i in s:
if i!="B":
ans.append(i)
else:
if ans!=[]:
ans.pop(-1)
p=""
for j in ans:
p+=j
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,205,177 |
s370010022 | p04030 | u745812846 | 1580843067 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 136 | a = []
for c in input():
if c == '0' or c == '1':
a.append(c)
else:
if a:
a.pop()
print("".join(a))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,178 |
s355692322 | p04030 | u745812846 | 1580842005 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | s = input()
ans = ''
for c in s:
if c == '0' or c == '1':
ans += c
else:
if c:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,179 |
s833831010 | p04030 | u329049771 | 1580831812 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 162 | stack = []
for s in input():
if s == '0' or s == '1':
stack.append(s)
elif s == 'B' and len(stack) != 0:
stack.pop()
print(''.join(stack)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,205,180 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.