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
s205454444
p04030
u554590385
1596768902
Python
Python (3.8.2)
py
Accepted
33
9080
180
s=str(input()) C= list(s) list=[] for I in range(len(C)): if C[I]!='B': list.append(C[I]) elif C[I]=='B' and len(list)!=0: list.pop() 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,381
s967883507
p04030
u500823377
1596765334
Python
Python (3.8.2)
py
Accepted
27
9004
187
input_line = list(input()) t = [] for i in input_line: if i == "0": t.append("0") elif i == "1": t.append("1") else: if t == []: t == [] else: t.pop(-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,382
s264249896
p04030
u552738814
1596763013
Python
Python (3.8.2)
py
Accepted
27
9044
255
input = input() output = "" for i in range(len(input)): if input[i] == "0": output += "0" elif input[i] == "1": output += "1" elif input[i] == "B": output = output[0:len(output)-1] else: pass 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,383
s660433718
p04030
u175217658
1596747911
Python
Python (3.8.2)
py
Accepted
29
8944
186
S = list(input()) ans = [] for i in range(len(S)): if(S[i] != 'B'): ans.append(S[i]) elif(S[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,384
s574934874
p04030
u343977188
1596724683
Python
Python (3.8.2)
py
Accepted
26
9044
140
s=str(input()) edi=[] for i in s: if i=='B' and len(edi)>0: edi.pop(-1) elif i=='0' or i=='1': edi.append(i) print("".join(edi))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,385
s983549207
p04030
u627691992
1596723498
Python
Python (3.8.2)
py
Accepted
27
9012
199
S = input() res = "" for i in range(len(S)): if(S[i] == "B" and res != ''): res = res[:-1] elif(S[i] == "0"): res += "0" elif(S[i] == "1"): res += "1" print(res)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,386
s566362463
p04030
u806976856
1596693936
Python
Python (3.8.2)
py
Accepted
29
9108
198
s=list(input()) n=len(s) ans=[] for i in range(n): if s[i]!="B" : ans.append(s[i]) 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,387
s902113249
p04030
u844813573
1596683697
Python
Python (3.8.2)
py
Accepted
29
9112
185
line = input() ans = "" for i in range(len(line)): if line[i] == "0" or line[i] == "1": ans += line[i] else: if ans != "": 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,388
s570297156
p04030
u844813573
1596683584
Python
Python (3.8.2)
py
Accepted
26
9040
207
line = input() ans = "" for i in range(len(line)): if line[i] == "0": ans += "0" elif line[i] == "1": ans += "1" else: if ans != "": 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,389
s515129927
p04030
u330799501
1596642420
Python
Python (3.8.2)
py
Accepted
31
8928
405
#k = int(input()) #s = input() #a, b = map(int, input().split()) #s, t = map(str, input().split()) #l = list(map(int, input().split())) #l = [list(map(int,input().split())) for i in range(n)] s = input() ans = [] for i in range(len(s)): if s[i] != "B": ans.append(s[i]) else: if (len(ans) > 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,390
s387497267
p04030
u935139749
1596511664
Python
Python (3.8.2)
py
Accepted
28
9032
154
s = input() ans = '' for si in s: if si == '0': ans += '0' elif si == '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,391
s561860448
p04030
u626228246
1596486432
Python
Python (3.8.2)
py
Accepted
27
9044
213
s = list(input()) box = [] for i in range(len(s)): if s[i] == "0": box.append("0") elif s[i] == "1": box.append("1") else: if box == []: pass else: box.pop(-1) print("".join(box))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,392
s627849719
p04030
u385823012
1596469638
Python
Python (3.8.2)
py
Accepted
26
8864
173
s = input() out = "" for i in range(len(s)): if s[i] == "B": out = out[0:len(out)-1] elif s[i] !="B": out = out+s[i] else: out = "" 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,393
s010801291
p04030
u980503157
1596469474
Python
Python (3.8.2)
py
Accepted
29
8872
169
s = input() out = "" for i in range(len(s)): if s[i] == "B": out = out[0:len(out)-1] elif s[i] != "B": out = out+s[i] else: out = "" 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,394
s284960426
p04030
u094191970
1596411935
Python
Python (3.8.2)
py
Accepted
28
9092
138
s=input() ans='' for i in s: if i=='0': ans+='0' elif i=='1': ans+='1' else: if ans!='': ans=ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,395
s256493951
p04030
u433380437
1596392153
Python
PyPy3 (7.3.0)
py
Accepted
73
61556
126
S=str(input()) T='' for i in range(len(S)): if S[i]=='0' or S[i]=='1': T+=S[i] else: 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,396
s836059599
p04030
u372303722
1596388473
Python
Python (3.8.2)
py
Accepted
24
8996
238
s = input() c = list(s) ans_list = [] for i in range(len(s)): if(c[i]=="0" or c[i]=="1"): ans_list.append(c[i]) else: try: ans_list.pop(-1) except: a = 0 print("".join(ans_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,397
s007318227
p04030
u123107676
1596388411
Python
Python (3.8.2)
py
Accepted
35
9864
146
import re text = input() b_length = len(re.sub('[^B]', '', text)) for _ in range(b_length): text = re.sub('(0|1)??B', '', 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,398
s659161048
p04030
u671454079
1596388248
Python
Python (3.8.2)
py
Accepted
27
8976
414
s = input() n = len(s) s_ans = "" for i in range(n): if s[i] == "0": s_ans = s_ans + "0" elif s[i] == "1": s_ans = s_ans + "1" elif s[i] == "B": len_ans = len(s_ans) if len_ans >= 1: s_ans = s_ans[:len_ans-1] elif len_ans == 0: s_ans = s_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,399
s291382463
p04030
u200245833
1596364450
Python
Python (3.8.2)
py
Accepted
29
9040
128
s = list(input()) out = [] for s1 in s: if s1 == 'B': if out != []: out.pop() else: out.append(s1) print(''.join(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,400
s935358753
p04030
u156815136
1596331920
Python
Python (3.8.2)
py
Accepted
39
10204
935
#from statistics import median #import collections #aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0] from fractions import gcd from itertools import combinations,permutations,accumulate # (string,3) 3回 #from collections import deque from collections import deque,defaultdict,Counter impo...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,401
s076771700
p04030
u054514819
1596331038
Python
PyPy3 (7.3.0)
py
Accepted
63
61948
338
import sys def input(): return sys.stdin.readline().strip() def mapint(): return map(int, input().split()) sys.setrecursionlimit(10**9) S = list(input()) lis = [] for s in S: if s=='0': lis.append(str(0)) if s=='1': lis.append(str(1)) if s=='B': if len(lis): lis.pop() p...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,402
s853178423
p04030
u644907318
1596330935
Python
PyPy3 (7.3.0)
py
Accepted
69
61608
245
s = input().strip() x = "" cur = 0 for i in range(len(s)): if s[i]=="0": x += "0" cur += 1 elif s[i]=="1": x += "1" cur += 1 else: if cur>0: x = x[:-1] cur -= 1 print(x)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,403
s104608586
p04030
u046158516
1596330654
Python
PyPy3 (7.3.0)
py
Accepted
66
61688
170
s=input() ans=[] for i in range(len(s)): if s[i]=='0': ans.append('0') elif s[i]=='1': ans.append('1') else: if ans: ans.pop() 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,404
s884288292
p04030
u229156891
1596330654
Python
Python (3.8.2)
py
Accepted
25
9032
186
s = input() ans = [] for l in s: if l == '0': ans.append('0') elif l == '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,405
s731884893
p04030
u761320129
1596330373
Python
Python (3.8.2)
py
Accepted
24
8956
126
S = input() ans = [] for c in S: if c=='B': if ans: ans.pop() else: ans.append(c) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,406
s705389350
p04030
u678167152
1596330337
Python
Python (3.8.2)
py
Accepted
28
8916
184
def solve(): S = input() ans = [] for s in S: if s!='B': ans.append(s) else: if len(ans): ans.pop(-1) ans = ''.join(ans) return ans print(solve())
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,407
s194278973
p04030
u047197186
1596168509
Python
Python (3.8.2)
py
Accepted
29
8900
107
s = input() res = '' for elem in s: if elem == 'B': res = res[:-1] else: res += elem 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,408
s617374223
p04030
u105099610
1596160805
Python
Python (3.8.2)
py
Accepted
23
9020
219
s = list(input()) n = len(s) ans = [] for i in range(n): if s[i] == '0': ans.append('0') elif s[i] == '1': ans.append('1') elif ans == []: 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,409
s256490820
p04030
u131464432
1596154095
Python
Python (3.8.2)
py
Accepted
25
9016
131
s = input() a = [] for i in s: if i != "B": a.append(i) else: if a: a.pop() 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,410
s264273033
p04030
u394244719
1596115177
Python
PyPy3 (7.3.0)
py
Accepted
66
61504
245
s = input() st = [] for i in range(len(s)): if s[i] == "0": st.append("0") elif s[i] == "1": st.append("1") else: if len(st) != 0: st.pop() else: continue print("".join(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,411
s471069112
p04030
u075303794
1596084034
Python
Python (3.8.2)
py
Accepted
23
8916
170
S=[x for x in input()] ans=[] for i in range(len(S)): if S[i]!='B': ans.append(S[i]) else: try: ans.pop() except: 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,412
s936443814
p04030
u841568901
1596057157
Python
Python (3.8.2)
py
Accepted
27
9196
171
from collections import deque S = input() T = deque([]) for s in S: if s=="B" and len(T)>0: T.pop() elif s=="B": pass else: T.append(s) 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,413
s587351177
p04030
u396211450
1596014148
Python
Python (3.8.2)
py
Accepted
25
8928
181
s=input() l=[] for i in s: if i=="0": l.append("0") elif i=="1": l.append("1") elif i=="B": if l!=[]: l.pop() if l==[]: print("") else: 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,414
s961286536
p04030
u259190728
1596014090
Python
Python (3.8.2)
py
Accepted
30
9260
1,619
from sys import stdin,stdout import bisect import math def st(): return list(stdin.readline().strip()) def inp(): return int(stdin.readline()) def li(): return list(map(int,stdin.readline().split())) def mp(): return map(int,stdin.readline().split()) def pr(n): stdout.write(str(n)+"\n") def...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,415
s249328965
p04030
u425762225
1596013218
Python
Python (3.8.2)
py
Accepted
22
9048
258
#!/usr/bin/env python3 def solve(s): l = [] for c in s: if c == "0" or c == "1": l.append(str(c)) elif len(l): l.pop() return "".join(l) def main(): s = input() print(solve(s)) return 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,416
s639692702
p04030
u840841119
1595938455
Python
Python (3.8.2)
py
Accepted
30
9096
94
s = input() ans = '' for i in s: ans = ans[:-1] if i == 'B' 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,417
s077220293
p04030
u075304271
1595911065
Python
Python (3.8.2)
py
Accepted
36
10292
406
import math import collections import fractions import itertools import functools import operator def solve(): s = input() edge = collections.deque() for i in s: if i == "0": edge.append("0") elif i == "1": edge.append("1") elif len(edge) > 0: edg...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,418
s382438098
p04030
u666964944
1595895281
Python
Python (3.8.2)
py
Accepted
29
8948
113
s = input() ans = '' for si in s: if si=='0': ans+='0' elif si=='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,419
s939007239
p04030
u763410402
1595878185
Python
Python (3.8.2)
py
Accepted
25
9056
231
def main(): s=input() li=[] for i in range(len(s)): if(s[i]!='B'): li.append(s[i]) else: if(len(li)!=0): li.pop() for i in li: print(i,end='') 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,420
s370344618
p04030
u980503157
1595871415
Python
Python (3.8.2)
py
Accepted
28
9096
175
s = input() output_s = "" for i in s: if i == "B" and len( output_s) != 0: output_s = output_s[0:len( output_s)-1] elif i != "B": output_s += i print(output_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,421
s215809449
p04030
u788068140
1595850719
Python
Python (3.8.2)
py
Accepted
32
9348
429
from collections import deque S = input() def calculate(s): q = deque() for i in range(len(s)): if s[i] == "0": q.append("0") continue if s[i] == "1": q.append("1") continue if s[i] == "B": if len(q) > 0: q.p...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,422
s465389771
p04030
u875113233
1595796134
Python
Python (3.8.2)
py
Accepted
29
8976
281
def main(): s=input() a=[] for i in range(len(s)): if s[i]=='0': a.append('0') elif s[i]=='1': a.append('1') elif s[i]=='B': if a==[]: continue else: a.pop(-1) print(''.join(a)) 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,423
s475230414
p04030
u797165415
1595775133
Python
Python (3.8.2)
py
Accepted
25
9000
229
s = input() l = len(s) ans = [] for i in range(l): if s[i]=='0': ans.append('0') elif s[i]=='1': ans.append('1') else: if ans!=[]: ans.pop(-1) n = len(ans) for i in range(n-1): print(ans[i], end="") print(ans[n-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,424
s356584011
p04030
u539768961
1595724939
Python
Python (3.8.2)
py
Accepted
33
9088
111
s = input() a = "" for i in s: if i == "B": if not(a == ""): a = a[:-1] else: a += i 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,425
s551656884
p04030
u576335153
1595714195
Python
Python (3.8.2)
py
Accepted
24
9092
159
s = input() ans = '' for x in s: if x == 'B': if ans == '': continue ans = ans[:-1] else: ans += x print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,426
s063396749
p04030
u758815106
1595665470
Python
Python (3.8.2)
py
Accepted
22
9036
164
s = input() res = "" for do in s: if do == "B": if len(res) != 0: res = res[0:len(res)-1] else: res += do 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,427
s290532287
p04030
u923662841
1595637704
Python
Python (3.8.2)
py
Accepted
31
8772
185
s=input() stack =[] for i in s: if i != "B": stack.append(i) else: if not stack: continue else: 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,428
s277215956
p04030
u088553842
1595636272
Python
Python (3.8.2)
py
Accepted
30
9264
210
from collections import deque s = input() lst = deque() for i in range(len(s)): if s[i] == 'B': if len(lst) > 0: lst.pop() else: pass else: lst.append(s[i]) print(''.join(list(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,429
s094950760
p04030
u094999522
1595608937
Python
Python (3.8.2)
py
Accepted
36
9820
121
#!/usr/bin/env python3 import re s = input() for i in range(5): s = re.sub(r"\dB", "", s) print(s.replace("B", ""))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,430
s502083280
p04030
u640922335
1595604114
Python
Python (3.8.2)
py
Accepted
31
9400
245
from collections import deque S=input() ans=[] ans=deque(ans) for letter in S: if letter=='0': ans.append('0') elif letter=='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,431
s272156425
p04030
u119148115
1595567440
Python
PyPy3 (7.3.0)
py
Accepted
71
61708
231
import sys def LS2(): return list(sys.stdin.readline().rstrip()) #空白なし s = LS2() ans = [] for a in s: if a != 'B': ans.append(a) 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,432
s888719743
p04030
u169138653
1595555814
Python
Python (3.8.2)
py
Accepted
32
9328
267
from collections import deque s=input() n=len(s) stack=deque([]) for i in range(n): if s[i]=="0": stack.append("0") elif s[i]=="1": stack.append("1") else: if stack: x=stack.pop() stack=list(stack) 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,433
s555622047
p04030
u040298438
1595540236
Python
Python (3.8.2)
py
Accepted
28
8892
150
s = input() while "0B" in s or "1B" in s: s = s.replace("0B", "") s = s.replace("1B", "") while "B" in s: s = s.replace("B", "") print(s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,434
s593992498
p04030
u797106134
1595514287
Python
Python (3.8.2)
py
Accepted
26
8980
164
S = input() Ans = [] for s in S: if not s=='B': Ans.append(s) continue if not Ans: continue 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,435
s444161300
p04030
u465101448
1595511418
Python
Python (3.8.2)
py
Accepted
29
9100
133
S = input() ans='' for s in S: if s == 'B' : if len(ans)>0: 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,436
s263295768
p04030
u112065131
1595456348
Python
Python (3.8.2)
py
Accepted
27
8996
328
# -*- coding: utf-8 -*- # B - バイナリハックイージー s = input() listAns = [] set1 = ['0', '1'] set2 = ['B'] listS = list(s) # print(listS) for i in listS: if i in set1: listAns.append(i) elif i in set2: if len(listAns) != 0: listAns.pop() ans = "".join(listAns) 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,437
s561384051
p04030
u801049006
1595456331
Python
Python (3.8.2)
py
Accepted
25
9012
225
s = list(input()) n = len(s) ans = [] for i in range(n): if s[i] == '0': ans.append('0') if s[i] == '1': ans.append('1') if s[i] == 'B': 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,438
s196621628
p04030
u113255362
1595437405
Python
Python (3.8.2)
py
Accepted
25
9056
254
S=input() List = list(S) res="" def responseB(moji): if moji == "": return moji else: moji = moji[0:len(moji)-1] return moji for i in range(len(S)): if not List[i] == "B": res += List[i] else: res = responseB(res) 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,439
s186566679
p04030
u414458988
1595384372
Python
PyPy3 (7.3.0)
py
Accepted
75
65036
262
def main(): s = input() from collections import deque c = deque() for i in s: if i == 'B': if c: c.pop() else: c.append(i) print(''.join(list(c))) 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,440
s544362076
p04030
u767797498
1595383527
Python
Python (3.8.2)
py
Accepted
24
8968
83
s=input() ss="" for c in s: if c=="B": ss=ss[:-1] else: ss+=c 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,441
s545673317
p04030
u414920281
1595379603
Python
Python (3.8.2)
py
Accepted
23
8984
167
s=input() n=len(s) ans="" for i in range(n): if s[i]=="0": ans+="0" elif s[i]=="1": ans+="1" else: ans=ans[:len(ans)-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,442
s585533473
p04030
u968404618
1595211293
Python
Python (3.8.2)
py
Accepted
27
9024
157
S = input() ans = "" for s in S: if s == "0": ans += "0" if s == "1": ans += "1" if s == "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,443
s062728265
p04030
u319245933
1595208954
Python
PyPy3 (7.3.0)
py
Accepted
70
61856
151
*S, = input() ans = [] for s in S: if s == 'B': if len(ans): ans.pop(-1) else: ans.append(s) print(*ans, sep='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,444
s110904356
p04030
u506910932
1595207765
Python
Python (3.8.2)
py
Accepted
24
9024
222
s = input() ans = [] for c in s: if c == '0': ans.append('0') elif c == '1': ans.append('1') else: if ans: ans.pop() else: continue print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,445
s440338271
p04030
u779805689
1595188939
Python
PyPy3 (7.3.0)
py
Accepted
65
61788
110
S=input() T="" for s in S: if s=="B": if T: T=T[:-1] else: T+=s 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,446
s729291352
p04030
u763280125
1595181262
Python
Python (3.8.2)
py
Accepted
29
9020
227
s = input() i = len(s) - 1 res = '' while i >= 0: while i >= 0 and s[i] != 'B': res += s[i] i -= 1 cnt = 0 while i >= 0 and s[i] == 'B': i -= 1 cnt += 1 i -= cnt print(res[::-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,447
s576914749
p04030
u904406968
1595127761
Python
PyPy3 (7.3.0)
py
Accepted
62
61784
139
s = input() ans = [] for i in s: if i=='B': if len(ans)==0: continue ans.pop() else: ans.append(i) new = ''.join(ans) 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,448
s901319167
p04030
u285681431
1595107272
Python
Python (3.8.2)
py
Accepted
28
8908
171
s = input() op = "" for i in range(len(s)): if s[i] == "0": op += "0" if s[i] == "1": op += "1" if s[i] == "B": op = op[:-1] print(op)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,449
s910067779
p04030
u962985517
1595101260
Python
Python (3.8.2)
py
Accepted
27
9036
192
s =input() ans = [] for i in range(len(s)): if (s[i] == '0') or (s[i] == '1'): ans.append(s[i]) elif ans ==[]: 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,450
s992131144
p04030
u962985517
1595100748
Python
Python (3.8.2)
py
Accepted
31
9112
204
li = list(input()) ans = [] for i in range(len(li)): if (li[i] == '0') or (li[i] == '1'): ans.append(li[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,451
s238692260
p04030
u456337115
1595042850
Python
PyPy3 (7.3.0)
py
Accepted
68
61892
193
inp = input() str ="" for n in range(len(inp)): if inp[n]=="0": str = str + "0" elif inp[n] =="1": str = str + "1" else: if len(str) > 0: str = str[:-1] print(str)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,452
s214118988
p04030
u039002256
1595041466
Python
Python (3.8.2)
py
Accepted
26
9068
214
S = input() l = [] for i in S: if i == "0": l.append("0") if i == "1": l.append("1") if i == "B" and len(l) > 0: del l[len(l) - 1] for i in l: print(f"{i}", end="") print()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,453
s716000920
p04030
u501451051
1595039562
Python
Python (3.8.2)
py
Accepted
27
8940
196
s = input() ans = [] for i in s: if i == '1' or i == '0': ans.append(i) else: if ans == []: 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,454
s686042021
p04030
u623231048
1595036233
Python
Python (3.8.2)
py
Accepted
28
8908
188
s = input() n = len(s) ans = '' for i in range(n): s1 = s[i] if s1 == '0': ans += '0' elif s1 == '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,455
s692935822
p04030
u185806788
1594972241
Python
PyPy3 (7.3.0)
py
Accepted
64
62624
2,188
s=input() A=s.replace("0B","").replace("1B","").replace("0B","").replace("1B","").replace("0B","").replace("1B","").replace("0B","").replace("1B","").replace("0B","").replace("1B","").replace("0B","").replace("1B","").replace("0B","").replace("1B","").replace("0B","").replace("1B","").replace("0B","").replace("1B","") ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,456
s467637357
p04030
u135389999
1594964464
Python
Python (3.8.2)
py
Accepted
29
8952
158
s = input() n = len(s) ans = [] for i in s: if i != "B": ans.append(i) else: if ans != []: ans.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,457
s813091689
p04030
u833492079
1594959950
Python
Python (3.8.2)
py
Accepted
28
9044
103
s = input() ans = "" for c in s: if c=='B': 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,458
s201103236
p04030
u230621983
1594934409
Python
Python (3.8.2)
py
Accepted
30
8996
150
s = input() ans = '' for c in s: if c == '0': ans += '0' elif c == '1': ans += '1' else: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,459
s740827465
p04030
u271064067
1594928585
Python
Python (3.8.2)
py
Accepted
28
9092
307
s = str(input()) result = "" res = [] for i in range(len(s)): if s[i] == "0": res.append("0") elif s[i] == "1": res.append("1") else: if len(res) > 1: del res[-1] elif len(res) == 1: res = [] for i in res: result += i print(result)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,460
s940277011
p04030
u968166680
1594891837
Python
Python (3.8.2)
py
Accepted
27
8928
399
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines sys.setrecursionlimit(10 ** 9) INF = 1 << 60 MOD = 1000000007 def main(): s = readline().strip() ans = [] for c in s: if c in ('0', '1'): ans.append(c) elif ans: ans.pop...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,461
s323722113
p04030
u452337391
1594876379
Python
Python (3.8.2)
py
Accepted
23
9008
160
S = input() ans = [] for s in S: if s == "0" or s == "1": ans.append(s) if s == "B": 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,462
s680429737
p04030
u543373102
1594873308
Python
Python (3.8.2)
py
Accepted
25
8908
158
S = input() ans = "" for s in S: if s == "0": ans += s elif s == "1": ans += s elif s == "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,463
s636357937
p04030
u930705402
1594861475
Python
Python (3.8.2)
py
Accepted
24
9060
96
s=input() t='' for c in s: if c!='B': t+=c elif 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,464
s529905748
p04030
u706414019
1594814928
Python
Python (3.8.2)
py
Accepted
30
9288
183
from collections import deque S=input() t = deque() for s in S: if s == 'B' and len(t) !=0: t.pop() elif s == '1' or s == '0': t.append(s) 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,465
s855863242
p04030
u991604406
1594810396
Python
Python (3.8.2)
py
Accepted
25
8932
220
s = input() ans = [] for i in range(len(s)): if s[i] == '0': ans.append(0) elif s[i] == '1': ans.append(1) else: if ans != []: ans.pop() print(''.join(str(n) for n 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,466
s836346877
p04030
u551857719
1594752365
Python
Python (3.8.2)
py
Accepted
29
9096
390
#!/usr/bin/python # -*- coding: UTF-8 -*- import sys def std_in(): return sys.stdin.readline().strip() def editor(s): d = "" for c in s: if c == "0": d += c elif c == "1": d += c elif c == "B": d = d[0:-1] return d def _main(): s = s...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,467
s822143591
p04030
u626891113
1594748193
Python
Python (3.8.2)
py
Accepted
27
8996
184
s = list(input()) ans = [] for i in s: if i == "B": if ans == []: pass 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,468
s078759763
p04030
u841568901
1594745516
Python
Python (3.8.2)
py
Accepted
29
8900
129
S = input() T = "" for s in S: if s == "0": T += "0" elif s == "1": T += "1" elif len(T)>0: 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,469
s249195327
p04030
u767797498
1594710943
Python
Python (3.8.2)
py
Accepted
24
9004
163
def bs(s): if s == "": return s else: return s[:-1] s = input() ans = "" for c in s: if c == "B": ans = bs(ans) 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,470
s624513376
p04030
u088863512
1594709101
Python
Python (3.8.2)
py
Accepted
30
9268
574
# -*- coding: utf-8 -*- import sys from collections import deque, defaultdict from math import sqrt, factorial # def input(): return sys.stdin.readline()[:-1] # warning not \n # def input(): return sys.stdin.buffer.readline().strip() # warning bytes # def input(): return sys.stdin.buffer.readline().decode('utf-8') de...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,471
s093551340
p04030
u970198631
1594693986
Python
Python (3.8.2)
py
Accepted
25
8964
220
NN = input() list1 =[] for i in NN: if i == '0': list1.append('0') elif i == '1' : list1.append('1') else: if len(list1) == 0: pass else: list1.pop(-1) for i in list1: 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,472
s446527655
p04030
u441175813
1594642894
Python
PyPy3 (7.3.0)
py
Accepted
75
61708
147
s = input() ans = "" for i in s: if i == "B": if not ans == "": ans = ans[:-1] else: ans = ans + i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,473
s612728908
p04030
u598684283
1594580270
Python
Python (3.8.2)
py
Accepted
28
8940
266
s = list(input()) output = [] for i in range(len(s)): if s[i] == "0": output.append("0") elif s[i] == "1": output.append("1") else: if len(output) > 0: output.pop() else: pass print("".join(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,474
s714878395
p04030
u736546944
1594576764
Python
PyPy3 (7.3.0)
py
Accepted
74
61716
138
s = list(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,475
s403972835
p04030
u545644875
1594512876
Python
Python (3.8.2)
py
Accepted
29
9108
222
S = list(input()) ans_list = [] for i in S: if i == "0": ans_list.append("0") elif i == "1": ans_list.append("1") else: if len(ans_list) != 0: del ans_list[-1] ans = "".join(ans_list) 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,476
s117582433
p04030
u456416458
1594506870
Python
Python (3.8.2)
py
Accepted
30
8928
283
s = input() i = list(s) answer = [] for num in i: if num == '0': answer.append(num) elif num == '1': answer.append(num) else: if answer == []: continue else: answer.pop() for num in answer: print(num,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,477
s287392677
p04030
u316603606
1594500750
Python
Python (3.8.2)
py
Accepted
30
9044
145
S = input () s = '' for i in S: if i == '0': s += i elif i == '1': s += i elif i == 'B': if s != '': s = s[:-1] print (s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,478
s989809916
p04030
u370721525
1594499143
Python
Python (3.8.2)
py
Accepted
28
8976
154
s = str(input()) ans = '' for i in s: if i == '0': ans += i elif i == '1': ans += i else: if ans != '': ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,479
s756362624
p04030
u719886494
1594482847
Python
Python (3.8.2)
py
Accepted
27
9060
147
s = input() num = len(s) ans = "" for i in range(num): if s[i] != 'B': ans += s[i] elif 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,480