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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s149222342 | p04030 | u933129390 | 1586726217 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 216 | s = input()
ans = ""
for i in s:
if i == '0':
ans += '0'
elif i == '1':
ans += '1'
else:
if ans == "":
pass
else:
ans = ans[:len(ans)-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,881 |
s000938016 | p04030 | u572373398 | 1586725207 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 245 | from collections import deque
s = input()
q = deque()
for c in s:
if c == '0':
q.append('0')
elif c == '1':
q.append('1')
elif c == 'B':
if len(q) == 0:
continue
q.pop()
print(''.join(q)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,882 |
s143595498 | p04030 | u057993957 | 1586669097 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 154 | s = list(input())
hoge = []
for si in s:
if si != "B":
hoge.append(si)
elif si == "B" and len(hoge) > 0:
hoge.pop()
print("".join(hoge)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,883 |
s260389499 | p04030 | u006817280 | 1586654996 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 269 |
import collections
def solve(string):
stack = []
for ch in string:
if ch == "B":
if stack:
stack.pop()
else:
stack.append(ch)
return "".join(stack)
string = input().strip()
print(solve(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,884 |
s495202526 | p04030 | u032798323 | 1586647324 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 217 | 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(-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,885 |
s067165533 | p04030 | u373047809 | 1586626769 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 135 | s = []
for i in input():
if i == "B":
try:
del s[-1]
except IndexError:
pass
else:
s += i
print(*s, sep="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,886 |
s296376804 | p04030 | u982591663 | 1586606689 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 223 | s = input()
ans = []
for char in s:
if char == "0":
ans.append("0")
elif char == "1":
ans.append("1")
else:
try:
ans.pop()
except:
pass
print("".join(ans))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,887 |
s755056498 | p04030 | u634079249 | 1586569134 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 884 | import sys
import os
ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]
iss = lambda: sys.stdin.buffer.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,888 |
s798844272 | p04030 | u731448038 | 1586559318 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 206 | s = []
command = list(input())
for i in range(len(command)):
if command[i]=='0':
s.append('0')
elif command[i]=='1':
s.append('1')
else:
if len(s):
s.pop()
print(''.join(s)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,889 |
s399435113 | p04030 | u049420296 | 1586549517 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | s = input()
ans = ""
for i in s:
if i == 'B':
if len(ans):
ans = ans[:len(ans) - 1]
else:
ans += i
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,890 |
s751172848 | p04030 | u583507988 | 1586488978 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 275 | s = str(input())
l = len(s)
ans = []
for i in range(l):
if s[i] == str(0):
ans.append(str(0))
elif s[i] == str(1):
ans.append(str(1))
else:
if ans == []:
continue
else:
del ans[-1]
print(*ans, sep='') | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,891 |
s785784927 | p04030 | u172780602 | 1586485852 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 175 | s=input()
display=[]
for i in s:
if i=="0" or i=="1":
display.append(i)
elif display==[]:
pass
else:
display.pop()
print("".join(display)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,892 |
s958997912 | p04030 | u603067482 | 1586456886 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 196 | s = input()
# print(s)
o = []
for i in range(len(s)):
# print(i,s[i],o)
if (s[i] == 'B'):
if (len(o)>0):
o = o[:-1]
else:
o.append(s[i])
print(''.join(o))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,893 |
s029512803 | p04030 | u235210692 | 1586448898 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 176 | s=input()
display=[]
for i in s:
if i=="0" or i=="1":
display.append(i)
elif display==[]:
pass
else:
display.pop()
print("".join(display))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,894 |
s512864100 | p04030 | u440161695 | 1586447234 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 75 | 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,895 |
s844445650 | p04030 | u440161695 | 1586447111 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 182 | from collections import deque
s=deque(input())
A=deque()
for i in range(len(s)):
a=s.popleft()
if a=="B":
if len(A)>0:
A.pop()
else:
A.append(a)
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,896 |
s762411628 | p04030 | u934442292 | 1586401751 | Python | Python (3.4.3) | py | Accepted | 16 | 2940 | 274 | import sys
input = sys.stdin.readline
def main():
s = input().rstrip()
N = len(s)
ans = ""
for i in range(N):
if s[i] == "B":
ans = ans[:-1]
else:
ans += s[i]
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,897 |
s456151408 | p04030 | u684906944 | 1586397392 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 269 | s = list(input())
# print(s)
ans = []
for i in range(len(s)):
if s[i] == '0':
ans.append(s[i])
elif s[i] == '1':
ans.append(s[i])
else:
if len(ans) != 0:
del ans[-1]
str_ans = ''
for i in range(len(ans)):
str_ans += ans[i]
print(str_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,898 |
s097526413 | p04030 | u201802797 | 1586369405 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 127 | sam = input()
red = []
for i in sam:
if i == "B":
if red:
del red[-1]
else:
red.append(i)
print(*red, 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,899 |
s752689221 | p04030 | u747602774 | 1586355186 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 184 | s = input()
ans = ''
for i in range(len(s)):
if s[i] == '0':
ans += '0'
elif s[i] == '1':
ans += '1'
else:
ans = ans[:max(len(ans)-1,0)]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,900 |
s327018096 | p04030 | u114233208 | 1586335468 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 149 | S = input()
s = []
for each in S:
if each == 'B':
if len(s) > 0:
s.pop()
else:
s.append(each)
print(''.join(s))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,901 |
s738715323 | p04030 | u759412327 | 1586291710 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 78 | a = ""
for s in input():
if s=="B":
a=a[:-1]
else:
a+=s
print(a) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,902 |
s063038469 | p04030 | u759412327 | 1586291576 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 110 | S = input()
a = []
for s in S:
if s=="B":
if a:
a.pop()
else:
a.append(s)
print(*a,sep="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,903 |
s733989679 | p04030 | u276115223 | 1586286946 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 289 | # ABC 043: B – バイナリハックイージー / Unhappy Hacking (ABC Edit)
s = input()
editor = ''
for c in s:
if c == '0':
editor += '0'
elif c == '1':
editor += '1'
elif c == 'B':
if len(editor) > 0:
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,904 |
s326012927 | p04030 | u696444274 | 1586282145 | Python | Python (3.4.3) | py | Accepted | 38 | 5148 | 387 |
import math
import itertools
import statistics
#import numpy as np
import collections
#n = int(input())
#n, l = list(map(int, input().split()))
#a = list(map(int, input().split()))
s = input()
ans = ""
for i in range(len(s)):
if s[i]=="0":
ans += "0"
elif s[i]=="1":
ans += "1"
else:
... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,905 |
s178814567 | p04030 | u870841038 | 1586281731 | 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)
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,204,906 |
s232130029 | p04030 | u192154323 | 1586265053 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 195 | S = input()
ans = []
for s in S:
if s == 'B':
if len(ans) >= 1:
ans.pop()
else:
continue
else:
ans.append(s)
ans = ''.join(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,907 |
s666038079 | p04030 | u451206510 | 1586238459 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 129 | s = input()
ans = ""
for i in s:
if(i == "0" or i == "1"):
ans = ans + i
else:
ans = ans[:-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,908 |
s505277331 | p04030 | u901060001 | 1586237271 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 166 | s = input()
k = ""
for i in s:
if i == "1":
k += "1"
elif i == "0":
k += "0"
else:
_len = len(k)
k = k[:_len-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,909 |
s386003629 | p04030 | u278057806 | 1586232209 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 286 | from sys import stdin
from collections import deque
input = stdin.readline
s = input().rstrip()
d = deque([])
for i in s:
if i != "B":
d.append(i)
else:
if d:
d.pop()
else:
pass
while d:
print(d.popleft(), end="")
print()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,910 |
s172689425 | p04030 | u271934630 | 1586231652 | Python | Python (3.4.3) | py | Accepted | 24 | 3436 | 356 | import sys
stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)
from collections import deque
i_i = lambda: int(i_s())
i_l = lambda: list(map(int, stdin.readline().split()))
i_s = lambda: stdin.readline().rstrip()
s = i_s()
d = deque()
for x in s:
if d and x == 'B':
d.pop()
elif x == '0' or x == '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,911 |
s876719167 | p04030 | u257541375 | 1586222771 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 161 | s=input()
length = len(s)
ary = []
for i in range(length):
if s[i] != "B":
ary.append(s[i])
elif len(ary) != 0:
ary.pop(-1)
print("".join(ary)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,912 |
s212195729 | p04030 | u939198091 | 1586222579 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 364 | def solve(str):
ans = ""
for s in str:
if s == '0':
ans += '0'
elif s == '1':
ans += '1'
elif s == 'B':
if len(ans) == 0:
continue
else:
ans = ans[:-1]
else:
RuntimeError("input is not 0 or 1 or B.")
return
return ans
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,204,913 |
s383780533 | p04030 | u528470578 | 1586192947 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 182 | s = list(input())
ans = []
for i in s:
if i == "B" and len(ans) != 0:
ans.pop()
elif i == "B":
continue
else:
ans.append(i)
print("".join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,914 |
s398789414 | p04030 | u000770457 | 1586185888 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 245 | key=list(input())
text=[]
while len(key)>0:
t = key.pop(0)
if t=='B' and len(text)<=0:
pass
elif t=='B' and len(text)>0:
text.pop()
elif t=='0':
text.append('0')
elif t=='1':
text.append('1')
print(''.join(text)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,915 |
s030535589 | p04030 | u231189826 | 1586117206 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 181 | s = input()
ans = []
for i in range(len(s)):
if s[i] == '0' or s[i] == '1':
ans.append(s[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,204,916 |
s782381289 | p04030 | u281303342 | 1586109118 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 515 | # python 3.4.3
import sys
input = sys.stdin.readline
# -------------------------------------------------------------
# library
# -------------------------------------------------------------
# -------------------------------------------------------------
# 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,917 |
s624595025 | p04030 | u266964556 | 1586067103 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 181 | s = input()
ans = ""
for i in range(len(s)):
if s[i] == "0":
ans += "0"
elif s[i] == "1":
ans += "1"
elif s[i] == "B":
ans = ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,918 |
s096331525 | p04030 | u038408819 | 1586066505 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 220 | s = list(input())
from collections import deque
ans = deque([])
for i in range(len(s)):
if s[i] == 'B':
if ans:
ans.pop()
else:
ans.append(s[i])
print(''.join([str(i) for i 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,204,919 |
s748810701 | p04030 | u320511454 | 1586061646 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 107 | S=input()
d=[]
for s in S:
if s == 'B':
if d:
d.pop()
else:
d.append(s)
print(''.join(d)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,920 |
s324225493 | p04030 | u320511454 | 1586057170 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 153 | from collections import deque
S=input()
d=deque()
for s in S:
if s == 'B':
if len(d) != 0:
d.pop()
else:
d.append(s)
print(''.join(d)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,921 |
s177177492 | p04030 | u103902792 | 1586036205 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 98 | s = input()
ans = ''
for c in s:
if c == 'B':
ans = ans[:-1]
else:
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,204,922 |
s331550071 | p04030 | u298297089 | 1586034375 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 190 | s = input()
ans = []
for c in s:
if c == '0':
ans.append('0')
elif c == '1':
ans.append('1')
else:
if 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,204,923 |
s636474166 | p04030 | u755180064 | 1586032154 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 359 | url = "https://atcoder.jp/contests/abc043/tasks/abc043_b"
def main():
a = input()
a = list(a)
ans = []
for v in a:
if v == "B":
if len(ans) == 0:
pass
else:
ans.pop(-1)
else:
ans.append(v)
print(''.join(ans))
i... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,924 |
s059019974 | p04030 | u765721093 | 1586017968 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | y=""
a=str(input())
for i in range (len(a)):
if a[i]=="B":
y=y[:-1]
else:
y=y+a[i]
print(y) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,925 |
s421457933 | p04030 | u252828980 | 1586015112 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 103 | s = input()
L = ""
for i in s:
if i == "B":
if L:
L = L[:-1]
else:
L += i
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,926 |
s546614068 | p04030 | u252828980 | 1586014715 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 134 | s = input()
L = []
for i in s:
if i == "B":
if L:
L.pop()
else:
pass
else:
L.append(i)
print("".join(L)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,927 |
s784778171 | p04030 | u679154596 | 1586010961 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 247 | s = list(input())
L = len(s)
result = ""
for i in range(0, L):
if s[i] == "0":
result = result + "0"
elif s[i] == "1":
result = result + "1"
else:
if result == "":
pass
else:
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,928 |
s115716198 | p04030 | u840958781 | 1585977940 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | s=input()
ans=""
for i in range(len(s)):
if s[i]=="B":
ans=ans[:len(ans)-1]
else:
ans+=s[i]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,929 |
s682523435 | p04030 | u086172144 | 1585965812 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | s=list(input())
res=[]
for i in s:
if i=="B":
res=res[:-1]
else:
res.append(i)
print("".join(res)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,930 |
s946770495 | p04030 | u141410514 | 1585961186 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 196 | s = input()
ans = ["0"]*len(s)
j = 0
for i in range(len(s)):
if s[i] == "B":
j -=1
if j<0:
j = 0
else:
ans[j]=s[i]
j+=1
print("".join(ans[:j]))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,931 |
s333803979 | p04030 | u870297120 | 1585946701 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | ans = []
for i in input():
if (i == '1' or i == '0'): ans.append(i)
if i == 'B' and len(ans) != 0: ans.pop()
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,932 |
s613994754 | p04030 | u156815136 | 1585943807 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 457 | #import itertools
#import fractions
#import numpy as np
#mod = 10**4 + 7
"""def kiri(n,m):
r_ = n / m
if (r_ - (n // m)) > 0:
return (n//m) + 1
else:
return (n//m)"""
# Written by NoKnowledgeGG @YlePhan
#import math
#mod = 10**9+7
def main():
s = input()
ans = ""
for a in s:
if a == '0':
... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,933 |
s721310446 | p04030 | u151005508 | 1585941567 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 173 | s = input()
string=''
for c in s:
if c == 'B':
if string:
string=string[:-1]
else:
pass
else:
string+=c
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,934 |
s098033926 | p04030 | u080986047 | 1585941206 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 208 | li = input()
li2 =[]
for n in li:
if n == "0":
li2.append("0")
elif n == "1":
li2.append("1")
elif n == "B":
if not len(li2) == 0:
li2.pop()
print("".join(li2)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,935 |
s989270289 | p04030 | u708019102 | 1585891513 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 137 | l = list(input())
ans = []
for i in range(len(l)):
if l[i] != "B":
ans.append(l[i])
elif 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,936 |
s088591997 | p04030 | u181801282 | 1585882697 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 107 | S=list(input())
A=[]
for s in S:
if s=='B':
if len(A)>0: del A[-1]
else: A.append(s)
print("".join(A))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,937 |
s921337503 | p04030 | u485319545 | 1585874323 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 133 | s=input()
out=''
for i in range(len(s)):
if s[i]!='B':
out+='{}'.format(s[i])
else:
out= out[:-1]
print(out) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,938 |
s817335340 | p04030 | u798093965 | 1585865390 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 177 | S = list(input())
T = list()
for i in range(len(S)):
if S[i] == "B":
if len(T) == 0:
pass
else:
T.pop(-1)
else:
T = T + list(S[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,204,939 |
s638997972 | p04030 | u290187182 | 1585845642 | Python | Python (3.4.3) | py | Accepted | 35 | 5144 | 542 | import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *
def lcm(x, y):
return (x * y) // math.gcd(x, y)
if __name__ == '__main__':
s = input()
ans = ""
for i in 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,940 |
s393484698 | p04030 | u218838821 | 1585794742 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 264 | s = list(map(str,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 == []:
continue
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,204,941 |
s829158791 | p04030 | u553070631 | 1585793669 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 178 | s=input()
ans=''
for i in range(len(s)):
if s[i]=='0':
ans+='0'
elif s[i]=='1':
ans+='1'
elif s[i]=='B' and 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,204,942 |
s987515398 | p04030 | u220612891 | 1585778274 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 210 | s=input()
# print(list(s))
a=[]
for i in range(len(s)):
if s[i]=='0':
a.append(s[i])
elif s[i]=='1':
a.append(s[i])
else:
if len(a)>0:
del a[-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,943 |
s666045006 | p04030 | u166340293 | 1585776472 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 210 | S=input()
s=[str(c) for c in(S)]
size=0
a=[]
for i in (s):
if i=='1' or i=='0':
a.append(i)
size+=1
else:
if size!=0:
a.pop(size-1)
size-=1
for j in range(size):
print(a[j],end="") | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,944 |
s038535142 | p04030 | u702517202 | 1585761662 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 166 | s = input()
result = ""
for i in range(len(s)):
if s[i] == "B":
result = result[0:len(result) - 1]
else:
result = result + s[i]
print(result) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,945 |
s729651960 | p04030 | u069744971 | 1585729651 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 226 | s=input()
output=""
for n in range(0,len(s)):
if s[n]=="0":
output+="0"
elif s[n]=="1":
output+="1"
elif s[n]=="B":
if len(output)>=1:
output=output[:len(output)-1]
print(output) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,946 |
s603693144 | p04030 | u535659144 | 1585692880 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 187 | lista = list(input())
listb=[]
for a in lista:
if a == "0" or a =="1":
listb.append(a)
elif a =="B":
if len(listb)>0:
listb.pop()
print(''.join(listb)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,947 |
s135797716 | p04030 | u735654057 | 1585659967 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 223 | # https://atcoder.jp/contests/abc043/tasks/abc043_b
s = list(input())
result = []
for c in s:
if c == 'B':
if len(result) > 0:
result.pop()
else:
result.append(c)
print(''.join(result))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,948 |
s250164122 | p04030 | u857547702 | 1585608976 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 210 | s=input()
#s='0BB1'
l=[]
for i in s:
if i=='0':
l.append(0)
elif i=='1':
l.append(1)
else:
if len(l)==0:
pass
else:
del l[-1]
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,204,949 |
s982060728 | p04030 | u857547702 | 1585608938 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 210 | s=input()
#s='0BB1'
l=[]
for i in s:
if i=='0':
l.append(0)
elif i=='1':
l.append(1)
else:
if len(l)==0:
pass
else:
del l[-1]
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,204,950 |
s270074372 | p04030 | u305018585 | 1585591400 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 74 | r=""
for x in input():
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,951 |
s680258104 | p04030 | u757030836 | 1585585371 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 198 | S = input()
stack = []
for s in S:
if s == "B" :
if not stack:
continue
else:
stack.pop()
elif s == "0" or s=="1":
stack.append(s)
print("".join(stack)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,952 |
s161025287 | p04030 | u852790844 | 1585583530 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 119 | s = list(input())
ans = ""
for i in s:
if i == 'B':
ans = ans[:-1]
continue
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,953 |
s079598749 | p04030 | u813098295 | 1585557691 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 142 | s = input()
ans = ""
for c in s:
if c != "B":
ans += c
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,954 |
s271114690 | p04030 | u440129511 | 1585529822 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 199 | s=list(input())
t=[]
for i in range(0,len(s)):
if s[i]=='B' and len(t)==0:pass
elif s[i]=='B' and len(t)!=0:del t[-1]
elif s[i]=='0':t.append('0')
else:t.append('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,955 |
s243659392 | p04030 | u728120584 | 1585522515 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 190 | s = input()
ans = []
for i in range(len(s)):
if s[i] == 'B':
if len(ans) == 0:
continue
ans.pop(-1)
continue
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,204,956 |
s290353825 | p04030 | u787449825 | 1585517399 | Python | Python (3.4.3) | py | Accepted | 22 | 2940 | 139 | key = input()
s = []
for i in key:
if i == '0' or i == '1':
s.append(i)
else:
if len(s) > 0:
s.pop(-1)
print(''.join(s))
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,957 |
s843598339 | p04030 | u947883560 | 1585501804 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 596 | #!/usr/bin/env python3
import sys
sys.setrecursionlimit(10**8)
INF = float("inf")
def solve(s: str):
ans = []
for c in s:
if c == "B":
if len(ans) > 0:
ans.pop()
else:
ans.append(c)
if len(ans) == 0:
print("error")
else:
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,958 |
s483536541 | p04030 | u583795455 | 1585499354 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 183 | _input = list(input())
_output = ""
for i in _input:
if i == "B":
if len(_output) > 0:
_output = _output[0:-1]
else:
_output += i
print(_output) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,959 |
s317854424 | p04030 | u948522631 | 1585450403 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 134 | s=input()
ans=[]
for i in s:
if i!="B":
ans.append(i)
else:
try:
ans.pop(-1)
except:
pass
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,960 |
s121022165 | p04030 | u395816772 | 1585436941 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | s = input()
b = ''
for i in s:
if i == 'B':
b = b[:-1]
else:
b += i
print(b) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,961 |
s414089473 | p04030 | u310855433 | 1585430026 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 104 | S = input()
word = ""
for s in S:
if s == "B":
word = word[:-1]
else:
word += s
print(word)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,962 |
s142944783 | p04030 | u408692629 | 1585429965 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 184 | str = input()
len_str = len(str)
result = ''
for i in str:
if i != 'B':
result = ''.join([result, i])
elif len(result) > 0:
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,963 |
s804917033 | p04030 | u292978925 | 1585422550 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 299 | """
kari1 = '01B0' #00
kari1 = '0BB1' #1
in1 = kari1
"""
in1 = input()
RC = ''
for idx1 in range(len(in1)):
if in1[idx1] == '0':
RC = RC + '0'
elif in1[idx1] == '1':
RC = RC + '1'
elif in1[idx1] == 'B':
if RC != '':
RC = RC[0:len(RC) - 1]
print(RC)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,964 |
s056706858 | p04030 | u253681061 | 1585419758 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 137 | s = list(input())
ans = ""
for x in s:
if x in ["0","1"]:
ans = ans + x
else:
ans = ans[:len(ans)-1]
print(ans) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,965 |
s940380292 | p04030 | u760961723 | 1585405845 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 298 | s = input()
def put_key(x,ans):
if x =="0":
return ans + "0"
elif x== "1":
return ans + "1"
else:
ls = list(ans)
if len(ls) == 0:
return ans
else:
ls[-1] = ""
return "".join(ls)
ans =str("")
for t in range(len(s)):
ans = put_key(s[t],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,966 |
s717259705 | p04030 | u957198490 | 1585343855 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 110 | s = input()
ans = ''
for c in s:
if c == 'B':
ans = ans[:-1]
else:
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,204,967 |
s800921354 | p04030 | u103136263 | 1585332986 | Python | Python (3.4.3) | py | Accepted | 40 | 5416 | 3,555 | # /usr/bin/python3
# -*- coding: utf-8 -*-
from queue import Queue
from queue import LifoQueue as Stack
from math import sqrt, floor, ceil, log2
from fractions import gcd
from itertools import permutations, combinations
from operator import itemgetter
from functools import cmp_to_key
__MOD__=(10**9)+7
yn = 'YNeos'
j... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,968 |
s387909454 | p04030 | u578501242 | 1585237456 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | x=input()
x=list(x)
y=[]
for i in range(len(x)):
if x[i]=='B':
if len(y)!=0:
del y[-1]
else:
y.append(x[i])
print(*y,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,969 |
s908394374 | p04030 | u098012509 | 1585190275 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 291 | import sys
input = sys.stdin.readline
def main():
S = input().strip()
ans = []
for s in S:
if s == 'B':
if len(ans) > 0:
ans.pop()
else:
ans.append(s)
print("".join(ans))
if __name__ == '__main__':
main()
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,970 |
s965353969 | p04030 | u877415670 | 1585183443 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | s=list(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,971 |
s820860682 | p04030 | u203339404 | 1585168517 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | s = input()
counter = 0
moji = ""
for i in s:
if i == "B":
moji = moji[:-1]
continue
moji = moji+ i
print(moji) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,972 |
s645346296 | p04030 | u489959379 | 1585150999 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 231 | from collections import deque
s = input()
res = deque()
for i in s:
if i == "0":
res.append("0")
elif i == "1":
res.append("1")
else:
if len(res) > 0:
res.pop()
print("".join(res)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,973 |
s376869677 | p04030 | u818349438 | 1585149816 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 251 | s = input()
n = len(s)
ans = ''
for i in range(n):
if s[i] == '0':
ans +='0'
elif s[i] == '1':
ans+= '1'
else:
if len(ans)>0:
ans = ans[:len(ans)-1]
else:
continue
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,974 |
s049573162 | p04030 | u437727817 | 1585140822 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 125 | stack =[]
s = input()
for i in s:
if i != "B":
stack.append(i)
else:
if stack:
stack.pop()
print("".join(stack)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,975 |
s298556364 | p04030 | u576917603 | 1585140575 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 214 | s=list(input())
from collections import deque
d=deque()
for i in s:
if i=="0":
d.append(i)
elif i=="1":
d.append(i)
else:
if len(d)>0:
d.pop()
print(''.join(list(d))) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,976 |
s795311751 | p04030 | u970197315 | 1585138856 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 208 | s=input()
s=list(s)
ans=[]
for ss in s:
if ss=='0' or ss=='1':
ans.append(ss)
elif ss=='B':
if len(ans)==0:
continue
else:
ans.pop()
print(''.join(ans)) | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,977 |
s802973092 | p04030 | u842964692 | 1585137903 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 147 | s=input()
ans=''
for i in range(len(s)):
if s[i]!='B':
ans+=s[i]
else:
if len(ans)!=0:
ans=ans[:-1]
print(ans)
| p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p>
<p>To begin wi... | 01B0
| 00
| 1,204,978 |
s703690882 | p04030 | u608088992 | 1585137478 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 361 | import sys
from collections import deque
def solve():
input = sys.stdin.readline
s = input().strip("\n")
q = deque()
for i in range(len(s)):
if s[i] == "0": q.append("0")
elif s[i] == "1": q.append("1")
else:
if q: q.pop()
print("".join(map(str, q)))
return ... | p04030 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,979 |
s714191644 | p04030 | u843135954 | 1585137041 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 411 | import sys
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()
s = list(ns())
ans = ''
from collections import deque
d=[]
for i in s:
if i == '0':
d.append('0')
elif i == '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,980 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.