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
s406639082
p04030
u716117006
1594481785
Python
Python (3.8.2)
py
Accepted
26
9040
269
def resolve(): s = input() display_str = "" for i in range(len(s)): if s[i] == "B": if len(display_str) != 0: display_str = display_str[0:-1] else: display_str += s[i] print(display_str) resolve()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,481
s293859497
p04030
u536034761
1594467019
Python
Python (3.8.2)
py
Accepted
25
8912
155
S = input() ans = "" flag = 0 for s in S[::-1]: if s == "B": flag += 1 continue if flag: flag -= 1 continue ans += s print(ans[::-1])
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,482
s672472052
p04030
u926046014
1594430865
Python
PyPy3 (7.3.0)
py
Accepted
74
61764
125
s=input() ans=[] for i in s: if i!="B": ans.append(i) else: ans=ans[:-1] print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,483
s126263452
p04030
u045939752
1594424667
Python
Python (3.8.2)
py
Accepted
23
8920
128
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,204,484
s724158111
p04030
u359573942
1594367238
Python
Python (3.8.2)
py
Accepted
29
9016
66
n='' for i in input(): n=n[:-1] if i == 'B' else n+i 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,204,485
s959343970
p04030
u886907961
1594282472
Python
Python (3.8.2)
py
Accepted
26
9024
135
n = input() s = '' for i in n: if i== '1' or i == '0': s+=i else: if len(s)>0: s =s[0:-1] print(s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,486
s839583416
p04030
u786020649
1594245645
Python
Python (3.8.2)
py
Accepted
31
8972
106
s=input() ans='' for x in s: if x!='B': ans+=x else: if x!='': 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,487
s334537220
p04030
u684743124
1594244539
Python
Python (3.8.2)
py
Accepted
23
9012
121
s=input() ans="" for i in s: if i == "1"or i=="0": ans+=i else: if len(ans)>0: ans=ans[0:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,488
s096146912
p04030
u007381711
1594236880
Python
Python (3.8.2)
py
Accepted
33
9340
261
# -*- coding:utf-8 -*- import sys from collections import deque input = sys.stdin.readline s = list(input()) d = deque() for i in s: if (i=='B')&(len(d)!=0): d.pop() elif (i=='B')&(len(d)==0): continue else: d.append(i) 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,489
s121791865
p04030
u062999487
1594230726
Python
PyPy3 (7.3.0)
py
Accepted
65
61428
237
S=list(input()) ans = [] #答え用意 for s in S: if s != 'B': ans.append(s) #末尾に要素追加 elif len(ans) != 0: #長さ del ans[-1] #指定した位置(今回は末尾:-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,490
s585027989
p04030
u642012866
1594215805
Python
Python (3.8.2)
py
Accepted
27
8916
186
S = input() res = [] for s in S: if s == "0": res.append("0") elif s == "1": res.append("1") else: if res: 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,491
s914479594
p04030
u503111914
1594180173
Python
Python (3.8.2)
py
Accepted
29
9040
219
ans = [] for i in input(): if i == "0": ans.append("0") elif i == "1": ans.append("1") else: if len(ans) == 0: None 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,492
s515712878
p04030
u509739538
1594145520
Python
Python (3.8.2)
py
Accepted
32
9348
428
from collections import defaultdict from collections import deque import itertools import math def readInt(): return int(input()) def readInts(): return list(map(int, input().split())) def readChar(): return input() def readChars(): return input().split() d = deque() for i in input(): if i=="0": d.appe...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,493
s559849949
p04030
u619144316
1594093173
Python
Python (3.8.2)
py
Accepted
30
9324
305
def main(): from collections import deque s = list(input()) ans = deque([]) 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)) 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,494
s444658157
p04030
u591503175
1594088088
Python
Python (3.8.2)
py
Accepted
26
9308
419
import collections def resolve(): ''' code here ''' s = collections.deque([item for item in input()]) que = collections.deque() while s: try: temp = s.popleft() if temp == 'B': que.pop() else: que.append(temp) ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,495
s872032591
p04030
u188138642
1594088066
Python
Python (3.8.2)
py
Accepted
27
9040
176
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(''.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,496
s981768210
p04030
u917558625
1594075933
Python
Python (3.8.2)
py
Accepted
25
8860
94
s=input() t='' for i in s: if i!='B': t+=i else: if t!='': 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,204,497
s787495109
p04030
u693173434
1594073171
Python
Python (3.8.2)
py
Accepted
31
9272
231
from collections import deque s=input() d=deque() for i in range(len(s)): if s[i]=="1": d.append("1") elif s[i]=="0": d.append("0") else: if len(d)!=0: d.pop() L="".join(d) 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,498
s846274286
p04030
u157232135
1594051865
Python
Python (3.8.2)
py
Accepted
26
8884
222
def main(): a=[] for s in input(): if s == "B": if len(a) > 0: a.pop() else: a.append(s) print("".join(a)) pass 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,499
s557546442
p04030
u875769753
1594044035
Python
PyPy3 (7.3.0)
py
Accepted
64
61424
210
S = input() st = '' for si in S: if si == '0': st += '0' if si == '1': st += '1' if si == 'B': if st == '': pass else: st = st[0:-1] print(st)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,500
s918243309
p04030
u168416324
1594039255
Python
Python (3.8.2)
py
Accepted
28
8896
156
s=list(input()) out=[] for i in s: if i=="B": if out==[]: continue out.pop() else: out.append(i) ou="" for i in out: ou+=i print(ou)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,501
s443420813
p04030
u849029577
1593993855
Python
PyPy3 (7.3.0)
py
Accepted
64
61800
110
s = input() ans = "" for i in s: if i == "B": ans = ans[:-1] else: ans += i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,502
s815537957
p04030
u085717502
1593959979
Python
Python (3.8.2)
py
Accepted
28
9036
252
#!/usr/bin/env python # coding: utf-8 # In[5]: s = input() # In[6]: ans = [] for i,w in enumerate(s): if w == "B" and len(ans) != 0: ans.pop(-1) elif w == "0" or w == "1": ans.append(w) print("".join(ans)) # In[ ]:
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,503
s029740061
p04030
u371385198
1593889364
Python
Python (3.8.2)
py
Accepted
28
9056
170
s = input() ans = list() for ss in s: if ss == '0': ans.append('0') elif ss == '1': ans.append('1') else: if ans: ans.pop(-1) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,504
s150390066
p04030
u978167553
1593884977
Python
Python (3.8.2)
py
Accepted
29
9060
142
s = input() ans = "" for c in s: if c == "B": if len(ans) > 0: 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,505
s715741234
p04030
u203669169
1593824703
Python
Python (3.8.2)
py
Accepted
26
8964
112
S = input() ret = "" for i in S: if i != "B": ret += i else: ret = ret[:-1] print(ret)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,506
s287735843
p04030
u417096287
1593801556
Python
PyPy3 (7.3.0)
py
Accepted
63
61560
136
S = list(input()) ans = "" for s in S: if s == "B": ans = ans[:len(ans) - 1] else: ans += s print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,507
s512344805
p04030
u453306058
1593788073
Python
Python (3.8.2)
py
Accepted
27
8968
229
s = input() ans = '' for i in range(len(s)): if s[i] == '0': ans += '0' elif s[i] == '1': ans += '1' else: if ans == '': continue else: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,508
s341109478
p04030
u445256674
1593718196
Python
Python (3.8.2)
py
Accepted
25
9032
243
s = input() result = '' for i in range(0, len(s)): if(s[i] == '0'): result = result + '0' elif(s[i] == '1'): result = result + '1' elif(s[i] == 'B'): if(len(result) > 0): result = result[ 0 : len(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,509
s576506532
p04030
u357751375
1593715077
Python
Python (3.8.2)
py
Accepted
31
9064
259
s = input() t = [] r = 0 for i in range(len(s)): if s[i] == '0': t.append('0') r += 1 elif s[i] == '1': t.append('1') r += 1 else: if r != 0: t.pop(r-1) r -= 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,510
s918147767
p04030
u333591669
1593710189
Python
Python (3.8.2)
py
Accepted
31
9048
287
def key(): a=input() b='' for i in range(0,len(a)): if a[i]=='0': b+='0' elif a[i]=='1': b+='1' elif a[i]=='B': if len(b)==0: continue else: b=b[0:-1] print(b) key()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,511
s137175755
p04030
u520018621
1593673450
Python
Python (3.8.2)
py
Accepted
24
9044
135
arr = input() new = "" for x in arr: if x == "B": if new: new = new[:-1] else: new += x print(new)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,512
s757193763
p04030
u061361273
1593660022
Python
Python (3.8.2)
py
Accepted
26
9104
248
def hi(): a = input() key = "" for i in range(len(a)): if a[i]=='0': key += '0' elif a[i]=='1': key += '1' elif a[i]=='B': if len(key) == 0: continue else: key = key[0:-1] print(key) hi()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,513
s037556372
p04030
u760831084
1593641898
Python
Python (3.8.2)
py
Accepted
29
8956
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,204,514
s409768740
p04030
u760831084
1593641780
Python
Python (3.8.2)
py
Accepted
29
9048
151
S = input() ans = '' for s in S: if s == '0' or s == '1': ans += s 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,515
s121175186
p04030
u760831084
1593641615
Python
Python (3.8.2)
py
Accepted
30
8984
162
S = input() ans = [] for s in S: if s == '0' or s == '1': ans.append(s) else: if len(ans) > 0: ans.pop(-1) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,516
s476869340
p04030
u345710188
1593572065
Python
Python (3.8.2)
py
Accepted
27
9100
209
s = list(str(input())) answer = "" for i in s: if i == "0": answer = answer + "0" elif i == "1": answer = answer + "1" elif i == "B": answer = answer[:-1] print(answer)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,517
s588018840
p04030
u858645668
1593546268
Python
Python (3.8.2)
py
Accepted
27
8980
121
s = input() r = "" for i in s: if i == '0': r = r+'0' elif i == '1': r = r+'1' else: r = r[0: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,204,518
s164277903
p04030
u243572357
1593537793
Python
Python (3.8.2)
py
Accepted
24
9092
135
s = input() stack = [] for i in s: if i == 'B' and stack: stack.pop() elif i != 'B': stack.append(i) 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,519
s713038732
p04030
u506910932
1593457014
Python
Python (3.8.2)
py
Accepted
25
9004
186
s = input() ans = [] for c in s: if c == '0': ans.append('0') elif c == '1': ans.append('1') else: if ans: ans.pop() print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,520
s055663919
p04030
u552738814
1593449801
Python
Python (3.8.2)
py
Accepted
29
9096
221
s = input() list = [] for i in s: if i == "0": list.append(i) elif i == "1": list.append(i) elif i == "B" and list != []: list.pop(-1) else: continue 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,204,521
s164672182
p04030
u679817762
1593377093
Python
Python (3.8.2)
py
Accepted
27
8980
260
#入力 input = input() text = '' #操作 for i in range(len(input)): if input[i] == '0': text = text + '0' elif input[i] == '1': text = text + '1' elif input[i] == 'B': if text != '': text = text[:-1] #出力 print(text)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,522
s047625307
p04030
u492910842
1593357713
Python
PyPy3 (7.3.0)
py
Accepted
63
61800
195
s=input() ans=[] for i in s: if i=="0": ans.append("0") elif i=="1": ans.append("1") else: if len(ans)>=1: ans.pop(len(ans)-1) else: continue print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,523
s981875284
p04030
u643679148
1593346945
Python
Python (3.8.2)
py
Accepted
28
9028
196
ss = input() ans = [] for s in ss: if s == '0': ans.append('0') elif s == '1': ans.append('1') elif s == '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,524
s112201099
p04030
u017050982
1593305245
Python
Python (3.8.2)
py
Accepted
25
9120
143
s = list(input()) ans = [] for i in s: if i == 'B': if len(ans) != 0: 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,525
s517558245
p04030
u603958124
1593303123
Python
Python (3.8.2)
py
Accepted
30
9004
181
s = input() t = [] for x in s: if x == "0": t.append("0") elif x == "1": t.append("1") else: if len(t) > 0: t.pop() print(*t,sep='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,526
s149015692
p04030
u871841829
1593297385
Python
Python (3.8.2)
py
Accepted
27
9016
142
s = input() t = [] for c in s: if c == "B": if len(t) != 0: t.pop() else: t.append(c) 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,527
s461868279
p04030
u479937725
1593295439
Python
Python (3.8.2)
py
Accepted
27
9088
121
S = input() A = [] for s in S: if s=="0" or s=="1": A.append(s) else: A = A[:len(A)-1] 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,528
s736736586
p04030
u239725287
1593283336
Python
Python (3.8.2)
py
Accepted
26
9008
430
import sys def I(): return int(sys.stdin.readline()) def MI(): return map(int, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readline().split())) def main(): s = input() ans = [] for i in range(len(s)): if s[i] == 'B': if ans: ans.pop() e...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,529
s973806012
p04030
u088488125
1593279091
Python
Python (3.8.2)
py
Accepted
28
8928
195
s=input() out="" for i in range(len(s)): if s[i]=="0": out=out+"0" elif s[i]=="1": out=out+"1" elif s[i]=="B": if out=="": continue 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,530
s636498861
p04030
u160224209
1593257186
Python
Python (3.8.2)
py
Accepted
25
9324
242
from collections import deque s = input() de = deque() for i in s: if i == "0": de.append("0") elif i == "1": de.append("1") elif i == "B": if len(de) != 0: de.pop() ans = "".join(de) 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,531
s599782075
p04030
u618369407
1593222332
Python
Python (3.8.2)
py
Accepted
26
9064
198
# -*- coding: utf-8 -*- s = list(str(input())) c = [] for x in s: if x != 'B': c.append(x) elif x == 'B' and c != []: c.pop() else: continue print(*c, 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,532
s817832128
p04030
u912650255
1593129385
Python
Python (3.8.2)
py
Accepted
31
9024
151
s = input() ans='' for i in s: if i == '0': ans += '0' elif i =='1': ans += '1' else: ans = ans[0:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,533
s869579194
p04030
u971811058
1593124709
Python
Python (3.8.2)
py
Accepted
31
9392
631
# Begin Header {{{ from math import gcd from collections import Counter, deque, defaultdict from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort from itertools import accumulate, product, permutations, combi...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,534
s248464670
p04030
u971811058
1593124142
Python
Python (3.8.2)
py
Accepted
32
9372
704
# Begin Header {{{ from math import gcd from collections import Counter, deque, defaultdict from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort from itertools import accumulate, product, permutations, combi...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,535
s488545107
p04030
u971811058
1593123773
Python
Python (3.8.2)
py
Accepted
27
9260
719
# Begin Header {{{ from math import gcd from collections import Counter, deque, defaultdict from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort from itertools import accumulate, product, permutations, combi...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,536
s027925997
p04030
u697615293
1593093342
Python
Python (3.8.2)
py
Accepted
26
8992
267
a = list(input()) b = [] for i,j in enumerate(a): if j == str("0"): b += str("0") elif j == str("1"): b += str("1") elif j == str("B"): if not b: pass else: del b[len(b)-1] print("".join(b))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,537
s630150472
p04030
u519968172
1593065487
Python
Python (3.8.2)
py
Accepted
25
9032
107
s=input() ss="" for m in s: if m=="B": if ss!="": ss=ss[:-1] else: ss+=m print(ss)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,538
s672214003
p04030
u289288647
1593049612
Python
Python (3.8.2)
py
Accepted
27
8988
204
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,204,539
s202277218
p04030
u981898278
1593031699
Python
Python (3.8.2)
py
Accepted
26
8976
274
s = list(input()) out = '' for i in range(len(s)): #print("s[{}] = {}".format(i, s[i])) if s[i] == "B": if out: out = out[:-1] elif s[i] == "0": out = out + "0" elif s[i] == "1": 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,540
s780268234
p04030
u793430793
1592975777
Python
Python (3.8.2)
py
Accepted
28
9112
235
#ABC043Bprint(1,end='') s=input() s_=[] for i in range(len(s)): if s[i]=="1": s_.append("1") if s[i]=="0": s_.append("0") if s[i]=="B": if len(s_)!=0: 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,541
s982916288
p04030
u578580291
1592970163
Python
Python (3.8.2)
py
Accepted
27
8984
404
def display(): s = input() out = [] final = '' for i in range(len(s)): key = s[i] if key == '0': out.append('0') if key == '1': out.append('1') if key == 'B': if len(out) > 0: out.pop() for i in range(len(...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,542
s387458069
p04030
u137646745
1592965427
Python
Python (3.8.2)
py
Accepted
33
8968
111
s=input() ans="" for a in s: if a=="0" or a=="1": ans+=a 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,543
s988067614
p04030
u514118270
1592951519
Python
Python (3.8.2)
py
Accepted
38
9892
589
import sys import math import itertools import bisect from copy import copy from collections import deque,Counter from decimal import Decimal def s(): return input() def i(): return int(input()) def S(): return input().split() def I(): return map(int,input().split()) def L(): return list(input().split()) def l(): retur...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,544
s422006828
p04030
u014333473
1592949123
Python
Python (3.8.2)
py
Accepted
30
9032
196
s=input() result = [] for i in s: if i=='0': result.append('0') elif i=='1': result.append('1') elif i=='B': if not result: continue result.pop() print(''.join(result))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,545
s821991349
p04030
u759412327
1592944726
Python
Python (3.8.2)
py
Accepted
24
9028
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,546
s328582436
p04030
u759412327
1592944694
Python
Python (3.8.2)
py
Accepted
29
8780
98
a = "" for s in input(): if s=="B": if len(a)!=0: 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,547
s104032999
p04030
u583507988
1592935068
Python
Python (3.8.2)
py
Accepted
32
9040
206
s = str(input()) ans = [] for i in s: if i == '0': ans.append('0') elif i == '1': ans.append('1') elif i == 'B': if ans == []: continue else: ans.pop() print(*ans, sep='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,548
s183773819
p04030
u663263525
1592930161
Python
PyPy3 (7.3.0)
py
Accepted
80
64364
209
from collections import deque s = list(input()) l = deque() for i in s: if i == 'B': if l: l.pop() else: continue 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,549
s171619421
p04030
u804954217
1592929374
Python
Python (3.8.2)
py
Accepted
26
8992
147
s = input() txt = [] for c in s: if c == 'B': if len(txt): txt.pop() else: txt.append(c) print(''.join(txt))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,550
s780772149
p04030
u790012205
1592904788
Python
Python (3.8.2)
py
Accepted
28
8976
174
S = list(input()) A = '' for s in S: if s == '0' or s == '1': A = A + s else: if len(A) == 0: continue A = A[:len(A) - 1] 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,551
s223124053
p04030
u344813796
1592875343
Python
Python (3.8.2)
py
Accepted
31
9112
192
s=list(str(input())) ans=[] for i in s: if i=='1': ans.append('1') elif i=='0': ans.append('0') else: if ans: ans.pop(-1) else: continue print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,552
s441226320
p04030
u723792785
1592860229
Python
Python (3.8.2)
py
Accepted
27
9008
123
s = input() ans = "" for i in s: if i == "0": ans += "0" elif i == "1": ans += "1" else: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,553
s263567352
p04030
u440566786
1592777260
Python
PyPy3 (7.3.0)
py
Accepted
64
61464
332
import sys INF = 1 << 60 MOD = 10**9 + 7 # 998244353 sys.setrecursionlimit(2147483647) input = lambda:sys.stdin.readline().rstrip() def resolve(): stack = [] for c in input(): if c != 'B': stack.append(c) 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,554
s600368927
p04030
u600261652
1592769752
Python
Python (3.8.2)
py
Accepted
28
8916
285
def resolve(): s = input() lis = [] ans = "" for i in range(len(s)): if s[i] != "B": lis.append(s[i]) elif s[i] == "B" and len(lis) != 0: lis = lis[:-1] for j in range(len(lis)): ans += lis[j] print(ans) resolve()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,555
s031852063
p04030
u060793972
1592768303
Python
Python (3.8.2)
py
Accepted
26
9028
122
s='' for i in input(): if i=='B': if s!='': s=s[:-1] else: s+=i #print(s) print(s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,556
s462787683
p04030
u132892633
1592767659
Python
Python (3.8.2)
py
Accepted
27
9012
188
s = list(input()) ans = [] for i in s: if i == 'B': if ans == []: continue else: del ans[-1] else: ans.append(i) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,557
s111364466
p04030
u373047809
1592766889
Python
Python (3.8.2)
py
Accepted
26
8984
116
s = [] for t in input(): if t == "B": try:s.pop() except:pass else:s += t, 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,558
s220059485
p04030
u137228327
1592737568
Python
Python (3.8.2)
py
Accepted
23
8992
191
st = str(input()) #print(st) lst = [] for i in range(len(st)): if st[i] == 'B': if len(lst) > 0: lst.pop() else: lst.append(st[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,204,559
s265006034
p04030
u724012411
1592707041
Python
Python (3.8.2)
py
Accepted
31
9092
161
s=input() ans=[] for x in s: if x=='B' and len(ans)>0: del(ans[len(ans)-1]) elif x!='B': ans.append(x) for x in ans: print(x,end="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,560
s249562780
p04030
u623349537
1592701062
Python
Python (3.8.2)
py
Accepted
31
9092
150
s = input() ans = "" for c in s: if c == "1": ans += "1" elif c == "0": ans += "0" 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,561
s734315788
p04030
u309716323
1592677107
Python
PyPy3 (7.3.0)
py
Accepted
62
61960
377
def read_int(): return int(input().strip()) def read_ints(): return list(map(int, input().strip().split(' '))) def solve(): S = input().strip() stack = [] for s in S: if s == 'B': if stack: stack.pop() else: stack.append(s) return ''.jo...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,562
s289315638
p04030
u495667483
1592619652
Python
PyPy3 (7.3.0)
py
Accepted
71
61768
292
def mi(): return map(int, input().split()) def ii(): return int(input()) def main(): s = input() ans = '' for c in s: if c == 'B': ans = ans[:-1] if ans else ans else: ans += c 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,563
s727495250
p04030
u951289777
1592594727
Python
Python (3.8.2)
py
Accepted
31
9008
231
order = input() order = list(order) text = [] for o in order: if o == "0": text += "0" elif o == "1": text += "1" elif o == "B": if text != []: del text[-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,564
s962892023
p04030
u701077471
1592588945
Python
Python (3.8.2)
py
Accepted
28
9012
92
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,565
s354532558
p04030
u188827677
1592582590
Python
Python (3.8.2)
py
Accepted
31
9316
186
from collections import deque s = input() stack = deque() for i in s: if i == "0" or i == "1": stack.append(i) else: if len(stack) > 0: stack.pop() print(*stack, 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,566
s488429754
p04030
u131411061
1592576792
Python
Python (3.8.2)
py
Accepted
26
8880
109
s = input() res = '' for i in s: if i=='B': res = res[:-1] else: res += i print(res)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,567
s243760115
p04030
u197237612
1592544205
Python
Python (3.8.2)
py
Accepted
26
8980
156
s = list(input()) ans = [] for i in s: if i is not 'B': ans.append(i) elif len(ans) != 0: ans.pop() else: 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,568
s947825865
p04030
u922449550
1592529166
Python
Python (3.8.2)
py
Accepted
29
8964
125
S = input() ans = [] for s in S: if s == 'B' and ans: ans.pop() elif s != 'B': ans.append(s) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,569
s289982058
p04030
u073852194
1592520440
Python
Python (3.8.2)
py
Accepted
30
9040
190
s = input() res = list() for i in range(len(s)): if s[i] == 'B' and res: res.pop() elif s[i] == 'B': continue else: res.append(s[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,570
s792377772
p04030
u847901871
1592455010
Python
Python (3.4.3)
py
Accepted
18
3060
157
s = list(input()) result = [] for word in s: if word == 'B': if result != []: result.pop() else: result.append(word) 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,571
s317781434
p04030
u771007149
1592452664
Python
Python (3.4.3)
py
Accepted
17
3060
274
#ABC043-B s = input() result = [] for i in s: if i == '0': result.append('0') elif i == '1': result.append('1') else: if len(result) == 0: continue else: result.pop(-1) 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,572
s416519048
p04030
u687574784
1592362340
Python
Python (3.4.3)
py
Accepted
17
2940
147
s = input() ans = [] for key in s: if key=='B': if ans: ans.pop() else: ans.append(key) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,573
s160589203
p04030
u257162238
1592362085
Python
Python (3.4.3)
py
Accepted
17
2940
318
import sys input = sys.stdin.readline def read(): S = input().strip() return S, def solve(S): k = [] for s in S: if s != "B": k.append(s) elif len(k) > 0: k.pop() return "".join(k) if __name__ == '__main__': inputs = read() print(solve(*inputs))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,574
s836284245
p04030
u131881594
1592329800
Python
Python (3.4.3)
py
Accepted
17
3060
166
s=input() ans="" for b in s: if b=="1": ans+="1" elif b=="0": ans+="0" 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,575
s536365828
p04030
u488670118
1592181811
Python
Python (3.4.3)
py
Accepted
17
2940
206
s = list(input()) nows = [] for x in s: if x == "B": if len(nows) == 0: continue else: nows.pop(-1) else: nows.append(x) print("".join(nows))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,576
s757263721
p04030
u434966508
1592178190
Python
Python (3.4.3)
py
Accepted
22
3444
204
import copy s=str(input()) ans=[] for i in s: if i=='0': ans.append('0') elif i=='1': ans.append('1') else: if len(ans)>0: del(ans[-1]) 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,577
s227089044
p04030
u013513417
1592139913
Python
Python (3.4.3)
py
Accepted
21
3316
233
from collections import deque S=input() d=deque() for i in range(len(S)): if S[i]!="B": d.append(S[i]) elif len(d)!=0 and S[i]=="B": tmp=d.pop() Z=list(d) Z=[str(a) for a in Z] Z="".join(Z) print(Z)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,578
s104614136
p04030
u763249708
1592069699
Python
Python (3.4.3)
py
Accepted
17
3060
180
s = input() ans = "" for i in s: if i == '0': ans += '0' elif i == '1': ans += '1' else: if len(ans) > 0: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,579
s844301355
p04030
u939026953
1592009621
Python
Python (3.4.3)
py
Accepted
17
3060
174
A = input() X = [] for i in range(len(A)): if A[i] == "0": X.append("0") elif A[i] == "1": X.append("1") else: if X != []: X.pop(-1) print("".join(X))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,580