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
s386521436
p04030
u401452016
1574485160
Python
Python (3.4.3)
py
Accepted
17
2940
195
# 043B import sys s = sys.stdin.readline().rstrip() ans ='' for c in s: if c =='0': ans +='0' elif c =='1': ans +='1' elif c =='B': 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,205,381
s414839092
p04030
u124498235
1574478803
Python
Python (3.4.3)
py
Accepted
17
3060
155
s = input() o = "" for i in range(len(s)): if s[i] == "0": o = o + "0" elif s[i] == "1": o = o + "1" else: if len(o) > 0: o = o[:-1] print (o)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,382
s380348858
p04030
u532514769
1574470071
Python
Python (3.4.3)
py
Accepted
17
3060
249
a=list(input()) gamen=[] for i in range (len(a)): if a[i]=='0': gamen.append('0') if a[i]=='1': gamen.append('1') if a[i]=='B': if gamen==[]: continue else: del gamen[-1] mpjiretsu = ''.join(gamen) print(mpjiretsu)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,383
s812075769
p04030
u340947941
1574438584
Python
Python (3.4.3)
py
Accepted
17
2940
357
##### 解けた ##### S=input() A=[""] for s in S: # 入力の文字列1文字ずつ見てゆく if s in ["0","1"]: # もし0か1の場合、それを追加 A.append(s) elif s=="B": # もしバックスペースの場合、1文字削除 if len(A)>=1: # 長さが1以上の場合のみ削除 A.pop(-1) print("".join(A))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,384
s170615215
p04030
u516447519
1574378825
Python
Python (3.4.3)
py
Accepted
18
3060
179
s = input() N = len(s) A = str() for i in range(N): if s[i] == 'B': A = A[:-1] elif s[i] == '0': A += '0' elif s[i] == '1': 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,205,385
s686163716
p04030
u679325651
1574311049
Python
Python (3.4.3)
py
Accepted
17
2940
188
sss=str(input()) ans = "" for s in sss: if s=="0": ans = ans + "0" elif s=="1": ans = ans + "1" else: if ans!=[]: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,386
s625251985
p04030
u627417051
1574309457
Python
Python (3.4.3)
py
Accepted
18
2940
165
s = list(input()) N = len(s) ans = [] for i in range(N): if s[i] == "0" or s[i] == "1": ans.append(s[i]) else: if ans != []: ans.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,387
s256196363
p04030
u836737505
1574297988
Python
Python (3.4.3)
py
Accepted
17
3060
166
S = str(input()) st = "" for i in range(len(S)): if S[i] == "1": st += "1" elif S[i] =="0": st += "0" else: st = st[:-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,205,388
s840020292
p04030
u143278390
1574280170
Python
Python (3.4.3)
py
Accepted
17
2940
134
s=input() x='' for i in s: if(i=='0'): x+='0' elif(i=='1'): x+='1' elif(i=='B'): x=x[:-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,205,389
s215339490
p04030
u633450100
1574266984
Python
Python (3.4.3)
py
Accepted
18
2940
159
s = input() ans = '' for i in range(0,len(s)): if s[i] == '0' or s[i] == '1': ans += s[i] elif s[i] == 'B': ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,390
s001293124
p04030
u864197622
1574223609
Python
Python (3.4.3)
py
Accepted
17
2940
88
ans = "" for s in input(): if s == "B": ans = ans[:-1] else: ans += s print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,391
s358685086
p04030
u476124554
1574169961
Python
Python (3.4.3)
py
Accepted
17
3060
282
s = input() ans = [] for i in range(len(s)): if s[i] == "1": ans.append(1) elif s[i] == "0": ans.append(0) else: if ans : length = len(ans) ans = ans[:length-1] a = "" for i in range(len(ans)): a +=str(ans[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,205,392
s979710787
p04030
u673981655
1574133615
Python
Python (3.4.3)
py
Accepted
17
2940
143
s = input() a = '' for i in s: if i == '1': a += '1' if i == '0': a += '0' if i == 'B': if a !='': a = 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,205,393
s280598415
p04030
u141786930
1574132294
Python
Python (3.4.3)
py
Accepted
20
3316
276
from collections import deque def main(): s = input() ans = deque() for i in s: if i == '0' or i == '1': ans.append(i) elif i == 'B' and len(ans)>0: ans.pop() print(''.join(ans)) if __name__ == '__main__': main()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,394
s612604135
p04030
u141786930
1574131884
Python
Python (3.4.3)
py
Accepted
17
2940
244
def main(): s = input() ans = [] for i in s: if i == '0' or i == '1': ans.append(i) elif i == 'B' and len(ans)>0: ans.pop() print(''.join(ans)) if __name__ == '__main__': main()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,395
s607026767
p04030
u823458368
1574048941
Python
Python (3.4.3)
py
Accepted
17
2940
162
s = input() t = "" for i in s: if i == 'B' and t == "": pass elif i == 'B' and t != "": t = t[:len(t)-1] else: t += i print(t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,396
s002000388
p04030
u727787724
1574037928
Python
Python (3.4.3)
py
Accepted
18
2940
214
s=list(input()) ans=[] for i in range(len(s)): if s[i]!="B": ans.append(s[i]) else: if len(ans)==0: continue else: ans.pop(len(ans)-1) a=''.join(ans) print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,397
s972801801
p04030
u936985471
1574017371
Python
Python (3.4.3)
py
Accepted
18
2940
140
s=input() ans=[] for i in range(len(s)): if s[i]=="B": if len(ans)>0: ans.pop() else: ans.append(s[i]) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,398
s142906791
p04030
u427093056
1573966423
Python
Python (3.4.3)
py
Accepted
18
2940
97
s=input() a="" for x in s: if x=="B": if len(a)>0: a=a[:-1] else: a+=x print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,399
s892337104
p04030
u047178225
1573932552
Python
Python (3.4.3)
py
Accepted
17
3060
231
S = list(input()) W = [] for i in S: if i == "0": W.append("0") elif i == "1": W.append("1") elif i == "B": if len(W) == 0: W = W else: W.pop(-1) print(*W, sep="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,400
s447819554
p04030
u452015170
1573854603
Python
Python (3.4.3)
py
Accepted
18
2940
182
s = input() len = len(s) ans = "" for i in range(len) : if s[i] == "0" : ans += "0" elif s[i] == "1" : ans += "1" else : ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,401
s626326273
p04030
u518223105
1573841889
Python
Python (3.4.3)
py
Accepted
18
2940
158
s = list(input()) ans = [] for e in s: if e == "B": if len(ans) > 0: ans.pop(-1) else: ans.append(e) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,402
s638481854
p04030
u753682919
1573835263
Python
Python (3.4.3)
py
Accepted
17
2940
133
S=list(input()) L=[] while S: if S[0]=="B": if L: del L[len(L)-1] else: L.append(S[0]) del S[0] print("".join(L))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,403
s680751882
p04030
u442810826
1573792414
Python
Python (3.4.3)
py
Accepted
17
2940
140
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,205,404
s202379509
p04030
u576917603
1573768046
Python
Python (3.4.3)
py
Accepted
17
2940
130
a=input() b="" for i in a: if i==str(0): b+="0" elif i==str(1): b+="1" else: b=b[:-1] print(b)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,405
s089396404
p04030
u925567828
1573676806
Python
Python (3.4.3)
py
Accepted
19
3064
333
s = list(input()) ans_list=[] for i in range(len(s)): if(s[i] == "0"): ans_list.append("0") elif(s[i] == "1"): ans_list.append("1") elif(s[i] == "B"): if(len(ans_list) != 0): ans_list.pop() else: continue for i in range(len(ans_list)): print(ans_li...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,406
s383990247
p04030
u735069283
1573625938
Python
Python (3.4.3)
py
Accepted
19
3060
164
s=str(input()) list =[] for i in range(len(s)): if s[i]=='B': list = list[0:-1] else: list +=s[i] k='' for i in range(len(list)): k +=list[i] print(k)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,407
s184922478
p04030
u779728630
1573624409
Python
Python (3.4.3)
py
Accepted
18
2940
144
s = input() res = "" for i in range(len(s)): if s[i] == "B": if res != "": res = res[:len(res)-1] else: res += s[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,205,408
s605393567
p04030
u052499405
1573619842
Python
Python (3.4.3)
py
Accepted
21
3316
351
#!/usr/bin/env python3 from collections import defaultdict import sys sys.setrecursionlimit(10**8) input = sys.stdin.readline s = input().rstrip() ans = [] for ch in s: if ch == "0": ans.append("0") elif ch == "1": ans.append("1") else: if len(ans) > 0: ans.pop() print("...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,409
s698835659
p04030
u991619971
1573611099
Python
Python (3.4.3)
py
Accepted
17
3060
262
s=str(input()) x='' list=[] for i in range(len(s)): if s[i]=='1': list.append('1') elif s[i]=='0': list.append('0') elif s[i]=='B' and len(list)!=0: del list[len(list)-1] for i in range(len(list)): x += list[i] print(x)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,410
s956257004
p04030
u135847648
1573596857
Python
Python (3.4.3)
py
Accepted
19
3060
149
s = input() stack = [] for i in range(len(s)): if s[i] != "B": stack += [s[i]] else: if stack: stack.pop() print("".join(stack))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,411
s147233782
p04030
u209619667
1573567481
Python
Python (3.4.3)
py
Accepted
18
3060
247
N = list(input().strip()) a=len(N) count = [] counter = 0 for n,i in zip(N,range(a)): if n != 'B': count.append(int(n)) else: if len(count) == 0: pass else: del(count[len(count)-1]) p = ''.join(map(str,count)) print(p)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,412
s614320421
p04030
u053035261
1573365851
Python
Python (3.4.3)
py
Accepted
17
3060
205
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: pass 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,205,413
s876839784
p04030
u762420987
1573340726
Python
Python (3.4.3)
py
Accepted
17
2940
189
s = list(input()) ans = [] for char in s: if char == "B": if ans: ans.pop(-1) else: pass else: ans.append(char) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,414
s641976331
p04030
u021759654
1573268334
Python
Python (3.4.3)
py
Accepted
17
2940
139
ks = list(input()) ans = [] for k in ks: if k == "B": if len(ans) > 0: ans.pop() else: ans.append(k) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,415
s821512053
p04030
u076917070
1573264519
Python
Python (3.4.3)
py
Accepted
20
3316
279
import sys from collections import defaultdict input = sys.stdin.readline def main(): s = input().strip() ans = "" for c in s: if c == "B": ans = ans[:-1] 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,205,416
s609253060
p04030
u533039576
1573228257
Python
Python (3.4.3)
py
Accepted
17
2940
133
s = input() t = '' for i in range(len(s)): if s[i] != 'B': t += s[i] elif len(t) >= 1: t = t[:-1] print(t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,417
s831641420
p04030
u276115223
1573217766
Python
Python (3.4.3)
py
Accepted
17
3060
296
# ABC 043: B – バイナリハックイージー / Unhappy Hacking (ABC Edit) s = input() editor = '' for key in s: if key == '0': editor += '0' elif key == '1': editor += '1' elif key == 'B': if editor != '': editor = editor[:-1] print(editor)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,418
s020338185
p04030
u434282696
1573171529
Python
Python (3.4.3)
py
Accepted
18
3060
172
s=input() n=len(s) res='' for i in range(n): if s[i]=='0':res=res+'0' elif s[i]=='1':res=res+'1' else: if res=='':continue else: res=res[:-1] print(res)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,419
s722192610
p04030
u281303342
1573167864
Python
Python (3.4.3)
py
Accepted
20
2940
175
# python3 (3.4.3) import sys input = sys.stdin.readline # main S = input() ans = "" for s in S: if s=="B": ans = ans[:-1] else: ans += s print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,420
s041261733
p04030
u867848444
1573148543
Python
Python (3.4.3)
py
Accepted
19
3060
111
s=input() ans='' for i in s: if i=='0' or i=='1': ans+=i else: ans=ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,421
s377909228
p04030
u322185540
1573135018
Python
Python (3.4.3)
py
Accepted
18
2940
201
s = input() moji = [] for y in s: if y == '0': moji.append('0') if y == '1': moji.append('1') if y == 'B'and moji!= []: sakuzyo = moji.pop(-1) print(''.join(moji))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,422
s054626407
p04030
u637551956
1573102384
Python
Python (3.4.3)
py
Accepted
17
2940
173
s= list(str(input())) editor=[] for i in s: if i=="0" or i=="1": editor.append(i) elif i=="B" and len(editor)>=1: editor.pop() print("".join(editor))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,423
s664071284
p04030
u513434790
1573091451
Python
Python (3.4.3)
py
Accepted
17
3060
225
# -*- coding: utf-8 -*- s = input() ans = "" for i in range(len(s)): if s[i] == "0": ans += "0" elif s[i] == "1": ans += "1" else: if i != 0: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,424
s909382624
p04030
u768993705
1573056477
Python
Python (3.4.3)
py
Accepted
17
3060
90
ans = '' for s in input(): if s=='B': ans = ans[:-1] else: ans += s print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,425
s399465245
p04030
u768993705
1573056422
Python
Python (3.4.3)
py
Accepted
17
2940
99
ans = [] for s in input(): if s=='B': ans = ans[:-1] else: ans += 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,205,426
s167121181
p04030
u768993705
1573056383
Python
Python (3.4.3)
py
Accepted
17
2940
108
s = input() ans = [] for ss in s: if ss=='B': ans = ans[:-1] else: ans += ss print(*ans, sep='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,427
s101471721
p04030
u768993705
1573056231
Python
Python (3.4.3)
py
Accepted
17
2940
118
ans = [] for s in input(): if s=='B': if len(ans)>0: del(ans[-1]) else: ans += 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,205,428
s197871322
p04030
u768993705
1573056184
Python
Python (3.4.3)
py
Accepted
17
2940
127
s = input() ans = [] for ss in s: if ss=='B': if len(ans)>0: del(ans[-1]) else: ans += ss print(*ans, sep='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,429
s298363067
p04030
u940061594
1573054704
Python
Python (3.4.3)
py
Accepted
17
3060
263
#Unhappy Hacking (ABC Edit) s = input() r = "" for i in range (0,len(s)): if s[i:i+1] == "0": r = r + '0' elif s[i:i+1] == "1": r = r + '1' else: if r != "": r = r[0:len(r)-1] else: pass print(r)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,430
s547143226
p04030
u690781906
1573049329
Python
Python (3.4.3)
py
Accepted
17
2940
156
s = input() ans = '' for i in range(len(s)): if s[i] == '0' or s[i] == '1': ans += s[i] elif s[i] == 'B': ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,431
s110961292
p04030
u663438907
1573011490
Python
Python (3.4.3)
py
Accepted
17
3060
259
s = list(input()) ans_list = [] for i in range(len(s)): if s[i] == '0': ans_list.append('0') if s[i] == '1': ans_list.append('1') if ans_list == []: pass else: if s[i] == 'B': ans_list.pop(-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,205,432
s368029912
p04030
u317713173
1573008099
Python
Python (3.4.3)
py
Accepted
17
2940
174
s = input() S = [] for i in s: if i == "B": if len(S) != 0: S.pop(-1) else: pass else: S.append(i) print(*S, sep="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,433
s365171438
p04030
u533713111
1572893383
Python
Python (3.4.3)
py
Accepted
17
3060
185
s = input() L = [] for i in range(len(s)): if s[i] == '0': L.append('0') elif s[i] == '1': L.append('1') elif s[i] == 'B' and len(L) > 0: del L[-1] print(''.join(L))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,434
s330415613
p04030
u803617136
1572833489
Python
Python (3.4.3)
py
Accepted
17
2940
148
s = input() ans = [] for c in s: if c == 'B' and ans: ans.pop() elif c == '0' or c == '1': ans.append(c) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,435
s377724340
p04030
u166888020
1572810439
Python
Python (3.4.3)
py
Accepted
16
3060
266
s = input() s_list = [c for c in s] output = [] for i in range(len(s)): if s_list[i] == '0': output.append('0') elif s_list[i] == '1': output.append('1') else: if len(output) > 0: output.pop() 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,205,436
s483246716
p04030
u143278390
1572727919
Python
Python (3.4.3)
py
Accepted
17
2940
189
s=input() text=[] for i in s: if(i=='0'): text.append(0) elif(i=='1'): text.append(1) else: text=text[:-1] t='' for i in text: t+=str(i) print(t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,437
s378064598
p04030
u117193815
1572642238
Python
Python (3.4.3)
py
Accepted
17
3060
184
s=list(input()) ans=[] for i in s: ans.append(i) if ans[0]=="B": ans.pop(0) elif i=="B": ans.pop(ans.index(i)-1) ans.pop(ans.index(i)) for i in ans: print(i,end="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,438
s852877791
p04030
u348868667
1572570087
Python
Python (3.4.3)
py
Accepted
18
3060
224
s = list(input()) tmp = [] for i in range(len(s)): if s[i] == "0": tmp.append("0") elif s[i] == "1": tmp.append("1") elif s[i] == "B" and tmp != []: tmp.pop(len(tmp)-1) print("".join(tmp))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,439
s876158550
p04030
u923659712
1572561744
Python
Python (3.4.3)
py
Accepted
17
2940
119
s =str(input()) a='' for x in s: if x=='0': a+='0' elif x=='1': a+='1' else: a=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,205,440
s230142012
p04030
u557494880
1572555571
Python
Python (3.4.3)
py
Accepted
18
3060
212
s = str(input()) n = len(s) a = [] for i in range(n): if s[i] != 'B': a.append(s[i]) else: if len(a) != 0: a.pop(-1) t ='' m = len(a) for j in range(m): t += a[j] print(t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,441
s311357655
p04030
u717993780
1572553294
Python
Python (3.4.3)
py
Accepted
17
3060
164
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,205,442
s119122463
p04030
u746419473
1572454208
Python
Python (3.4.3)
py
Accepted
18
2940
203
s = input() ans = [] for _s in s: if _s == "0": ans.append(0) elif _s == "1": ans.append(1) elif _s == "B" and len(ans) > 0: ans.pop() print("".join(map(str, ans)))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,443
s603844789
p04030
u202570162
1572386017
Python
Python (3.4.3)
py
Accepted
17
3060
198
s = list(input()) t = [] for i in range(len(s)): if s[i] == '0': t.append('0') elif s[i] == '1': t.append('1') else: if t: del t[-1] print(''.join(t))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,444
s141616032
p04030
u982517812
1572372223
Python
Python (3.4.3)
py
Accepted
17
3060
274
s = list(input()) e = [] for i in range(len(s)): if e == []: if (s[i] == "0") or (s[i] == "1"): e.append(s[i]) else: if (s[i] == "0") or (s[i] == "1"): e.append(s[i]) else: del e[-1] f = "".join(e) print(f)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,445
s736472449
p04030
u311636831
1572360528
Python
Python (3.4.3)
py
Accepted
17
3060
252
s=list(input()) for i in range(len(s)): if(s[i]=="B"): s[i]="A" for j in range(i,-1,-1): if((s[j]=="0")|(s[j]=="1")): s[j]="A" break for C in s: if(C!="A"): print(C,end="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,446
s901619818
p04030
u100418016
1572329245
Python
Python (3.4.3)
py
Accepted
19
2940
129
arr =list(input()) ret="" for st in arr: if(st == "B"): ret = ret[:len(ret)-1] else: ret = ret + st 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,205,447
s554271585
p04030
u099300051
1572321179
Python
Python (3.4.3)
py
Accepted
17
2940
156
S = input() ans ='' for x in S: if x == '0': ans += x elif x == '1': ans += x else: if ans!='': ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,448
s549719196
p04030
u633000076
1572219779
Python
Python (3.4.3)
py
Accepted
17
2940
172
s=input() a=[] for i in s: if i=="0": a.append("0") elif i=="1": a.append("1") else: if len(a)>=1: a.pop() print("".join(a))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,449
s934456303
p04030
u623516423
1572214030
Python
Python (3.4.3)
py
Accepted
17
2940
129
s=input() ans='' n=0 for i in s: if i == '0'or i == '1': ans+=i n+=1 elif n!=0: ans=ans[:n-1] n-=1 print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,450
s519259027
p04030
u636290142
1572184210
Python
Python (3.4.3)
py
Accepted
17
2940
130
s = input() res = "" for input_c in s: if input_c == 'B': res = res[:-1] else: res += input_c 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,205,451
s525238537
p04030
u269778596
1572117193
Python
Python (3.4.3)
py
Accepted
17
2940
184
s = input() ans = [] for i in s: if i =='B': try: ans.pop() except: continue else: ans.append(i) print("".join(i for i in ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,452
s610144079
p04030
u506858457
1572050206
Python
Python (3.4.3)
py
Accepted
17
2940
116
t=[] for x in input(): if x=="B": try:t.pop() except:pass else:t.append(x) print("".join(t))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,453
s625324039
p04030
u506858457
1572050145
Python
Python (3.4.3)
py
Accepted
17
2940
68
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,205,454
s980319868
p04030
u368882459
1572046596
Python
Python (3.4.3)
py
Accepted
17
2940
110
s = input() ans = '' for i in s: if i != 'B': ans += i else: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,455
s605277296
p04030
u254871849
1571986065
Python
Python (3.4.3)
py
Accepted
16
2940
208
s = input() letters = [letter for letter in s] res = [] for letter in letters: if letter == "B": if res: res.pop() else: res.append(letter) ans = ''.join(res) print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,456
s884754205
p04030
u518223105
1571960876
Python
Python (3.4.3)
py
Accepted
17
3060
334
# -*- coding: utf-8 -*- s = list(input()) ans = [] for j in range(len(s)): # print("j=%d word=%s length=%d ans=%s" % (j, s[j], len(ans), "".join(ans))) if (s[j]) == "B": l = len(ans) if l == 0: continue else: del ans[-1] else: ans.append(s[j]) print...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,457
s913776205
p04030
u628965061
1571889005
Python
Python (3.4.3)
py
Accepted
17
2940
121
slist=list(input()) alist=[] for i in slist: if i=="B": alist=alist[:-1] else: alist.append(i) print(*alist,sep="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,458
s677505337
p04030
u951480280
1571887708
Python
Python (3.4.3)
py
Accepted
18
2940
108
s=input() a="" for i in range(len(s)): if s[i]!="B": a+=s[i] else: a=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,205,459
s614257663
p04030
u614875193
1571880993
Python
Python (3.4.3)
py
Accepted
17
2940
170
s=input() w=[] for i in s: if i=='0': w.append('0') elif i=='1': w.append('1') else: if w!=[]: w.pop() print(''.join(w))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,460
s145320920
p04030
u325956328
1571871181
Python
Python (3.4.3)
py
Accepted
17
3060
177
s = input() ans = "" for i in s: if i == "0": ans += "0" elif i == "1": ans += "1" elif len(ans) != 0: ans = ans[: len(ans) - 1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,461
s021704293
p04030
u457803894
1571799829
Python
Python (3.4.3)
py
Accepted
17
3060
280
s = list(input()) ans_l = [] for i in s: if len(ans_l) != 0: if i == "B": del ans_l[len(ans_l) - 1] else: ans_l.append(i) else: if i != "B": ans_l.append(i) ans = "" for j in ans_l: ans = ans + j print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,462
s260633339
p04030
u247465867
1571782552
Python
Python (3.4.3)
py
Accepted
17
3060
308
#2019/10/22 #s = open(0).read() s = input() display = [] for i in s: if i == "0": display.append("0") elif i == "1": display.append("1") else: if display == []: continue else: display.pop(-1) #print(display) ans="".join(display) print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,463
s531781637
p04030
u912115033
1571779017
Python
Python (3.4.3)
py
Accepted
17
2940
154
s = input() output = '' for i in s: if i == 'B': if output != '': output = output[:-1] else: output += i print(output)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,464
s721317454
p04030
u388904130
1571756454
Python
Python (3.4.3)
py
Accepted
17
2940
202
S = list(input()) tmp = [] for i in S: if i == '0' or i == '1': tmp.append(i) else: if len(tmp) == 0: continue else: tmp.pop() print(''.join(tmp))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,465
s470948728
p04030
u970197315
1571718550
Python
Python (3.4.3)
py
Accepted
17
3060
411
# ABC043 B - バイナリハックイージー / Unhappy Hacking (ABC Edit) si = lambda: input() ni = lambda: int(input()) nm = lambda: map(int, input().split()) nl = lambda: list(map(int, input().split())) S = si() ans = '' for s in S: if s == '0': ans += '0' elif s == '1': ans += '1' elif s == 'B': n =...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,466
s426386566
p04030
u896741788
1571630945
Python
Python (3.4.3)
py
Accepted
17
3060
135
from itertools import groupby as gb s="" for i,b in gb(input()): if i=="B": s=s[:-len(list(b))] else:s+=i*len(list(b)) print(s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,467
s043145694
p04030
u390883247
1571578188
Python
Python (3.4.3)
py
Accepted
17
2940
205
s = list(input()) ans = "" for i in range(len(s)): if s[i] == '0': ans += '0' elif s[i] == '1': ans += '1' else: if len(ans) > 0: ans = ans[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,205,468
s164287100
p04030
u088552457
1571454777
Python
Python (3.4.3)
py
Accepted
17
2940
170
# -*- coding: utf-8 -*- s = list(str(input())) r = '' for i in s: if i == 'B' and r == '': continue if i == 'B': r = r[:-1] continue r += i print(r)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,469
s989644701
p04030
u716529032
1571449346
Python
Python (3.4.3)
py
Accepted
17
2940
158
s = input() result = "" for k in s: if(k == "0" or k == "1"): result += k else: if(result != ""): result = result[:-1] print(result)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,470
s694245196
p04030
u578049848
1571413598
Python
Python (3.4.3)
py
Accepted
17
3060
441
s = input() j = 0 for i in range(len(s)): #print("i=",i) if s[i-(2*j)] == "B": #print(i-(2*j)) #print(s) if s[0] == "B": s = 'x'+s[1:] #print(s) #print(s[0]) else: #print(i-(2*j)) s = s[:i-1-(2*j)]+s[i-(2*j)+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,205,471
s606616075
p04030
u268623418
1571406169
Python
Python (3.4.3)
py
Accepted
17
2940
262
#!/usr/bin/env python3 def delete_letter(result): if len(result) == 0: return result return result[:-1] s = input() result = '' for c in s: if c == 'B': result = delete_letter(result) else: result += c print(result)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,472
s825010723
p04030
u799978560
1571371891
Python
Python (3.4.3)
py
Accepted
17
2940
193
s = [str(i) for i in list(str(input()))] x = list() for i in s: if i == "0" or i == "1": x.append(i) elif i== "B" and x != []: x.pop(-1) print(','.join(x).replace(",",""))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,473
s977196360
p04030
u089376182
1571369899
Python
Python (3.4.3)
py
Accepted
17
2940
137
S = input() stack = [] for s in S: if s == 'B': if stack:stack.pop() else: stack.append(s) 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,205,474
s640929370
p04030
u261891508
1571327807
Python
Python (3.4.3)
py
Accepted
17
2940
118
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,205,475
s711755954
p04030
u606878291
1571285993
Python
Python (3.4.3)
py
Accepted
21
3316
344
from collections import deque def check(s): queue = deque() for c in s: if c == 'B': if len(queue) > 0: queue.pop() else: queue.append(c) return ''.join(queue) def main(): S = input() result = check(s=S) print(result) if __name__ ==...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,476
s744951040
p04030
u471684875
1571275281
Python
Python (3.4.3)
py
Accepted
17
2940
118
s=str(input()) t='' for i in s: if i=='0' or i=='1': t+=i elif t and i=='B': t=t[:-1] print(t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,477
s814783261
p04030
u814986259
1571229530
Python
Python (3.4.3)
py
Accepted
17
2940
143
s=input() buff=[] for x in s: if x == "0" or x == "1": buff.append(x) else: if len(buff) > 0: buff.pop() print("".join(buff))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,478
s539272592
p04030
u626468554
1571194792
Python
Python (3.4.3)
py
Accepted
17
3060
326
s = list(input()) memo = 0 a = [-1 for i in range(10)] for i in range(len(s)): if s[i] == '0': a[memo] = 0 memo += 1 elif s[i] == '1': a[memo] = 1 memo += 1 elif s[i] == 'B' and memo >0: memo -= 1 for i in range(memo): if a[i] != -1: print(a[i],end ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,479
s587155358
p04030
u408791346
1571084909
Python
Python (3.4.3)
py
Accepted
17
2940
202
s = list(input()) ans = [] for i in s: if i == "0" or i == "1": ans.append(i) elif i == "B": if len(ans) != 0: ans.pop(-1) else: print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,480