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
s971169345
p04030
u999893056
1577553037
Python
Python (3.4.3)
py
Accepted
17
3060
222
s = input() m = [] for i in s: if i == "0": m.append(i) elif i == "1": m.append(i) else: try: m.pop(-1) except: continue answer = "".join(m) print(answer)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,281
s041548901
p04030
u776237437
1577500404
Python
Python (3.4.3)
py
Accepted
18
2940
412
S=input() stack =[] for s in S: if not stack and s=='B': #continue文は、for文やwhile文のブロック処理中に使用。 #continue文を使用すると、それ以降の処理を行わず、for文やwhile文のブロックの先頭に戻る。 continue elif s=='B': stack.pop() else: stack.append(s) #''.join(list)でlistを文字列化 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,282
s625596795
p04030
u187058053
1577480819
Python
Python (3.4.3)
py
Accepted
17
3060
237
s = list(str(input())) kekka = [] for i in range(len(s)): if s[0]=="B": pass if s[i]=="B" : if not kekka==[]: kekka.pop() else: kekka.append(s[i]) print(''.join(kekka))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,283
s716603655
p04030
u581187895
1577475624
Python
Python (3.4.3)
py
Accepted
17
2940
171
S = input() ans = [] for s in S: if s == "0": ans.append("0") if s == "1": ans.append("1") if len(ans)!=0 and s == "B": 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,284
s415308310
p04030
u327532412
1577473329
Python
Python (3.4.3)
py
Accepted
17
3060
186
*s, = input() ans = [] for x in s: if x == '0': ans.append('0') elif x == '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,205,285
s681054564
p04030
u560301743
1577415890
Python
Python (3.4.3)
py
Accepted
17
2940
116
input_str = input() s = '' for c in input_str: if c == 'B': s = s[:-1] else: s += c 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,286
s730879113
p04030
u426572476
1577415730
Python
Python (3.4.3)
py
Accepted
42
5432
208
import math import fractions s = input() ans = "" for i in s: if i == "0": ans += "0" elif i == "1": ans += "1" else: if len(s) >= 1: 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,287
s255089161
p04030
u386089355
1577363177
Python
Python (3.4.3)
py
Accepted
19
3060
175
s = input() ans = '' for i in range(len(s)): if s[i] == '0': ans += '0' elif s[i] == '1': ans += '1' elif s[i] == 'B': if len(s) >= 1: 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,288
s716417604
p04030
u536717874
1577334004
Python
Python (3.4.3)
py
Accepted
17
3064
451
# coding: utf-8 import sys def main(argv=sys.argv): code = list(input()) list1 = [] for i in range(len(code)): if code[i] == '0': list1.append(0) elif code[i] == '1': list1.append(1) elif len(list1) == 0 and code[i] == 'B': pass elif code[i] == '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,289
s033007653
p04030
u025595730
1577331576
Python
Python (3.4.3)
py
Accepted
17
2940
368
# coding: utf-8 import sys def main(argv=sys.argv): inputs_ = list(input()) string_ = [] for input_ in inputs_: if input_ == 'B': if not string_ == []: string_.pop(-1) else: string_.append(input_) print(''.join(string_)) return 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,205,290
s110562910
p04030
u810457760
1577322466
Python
Python (3.4.3)
py
Accepted
17
2940
98
S = input() ans = "" for i in S: if i == "B": ans = ans[:-1] else: ans += i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,291
s777482624
p04030
u025595730
1577298366
Python
Python (3.4.3)
py
Accepted
17
2940
384
# coding: utf-8 import sys def main(argv=sys.argv): inputs_ = list(input()) string_ = [] for input_ in inputs_: if input_ == 'B': if not string_ == []: string_.pop(-1) else: string_.append(input_) print(''.join(string_)) ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,292
s095582684
p04030
u857346974
1577246948
Python
Python (3.4.3)
py
Accepted
17
2940
252
s = input() output = "" for i in s: #print("output:", output) if (output == "") and (i == "B"): pass elif i == "0": output = output + "0" elif i == "1": output = output + "1" elif i == "B": output = output[:-1] print(output)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,293
s437286891
p04030
u355137116
1577223035
Python
Python (3.4.3)
py
Accepted
17
2940
140
s = input() ans = '' for x in s: if x != 'B': ans += x elif x == 'B' and x != '': ans = ans[:-1] else: continue print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,294
s031344723
p04030
u695079172
1577218536
Python
Python (3.4.3)
py
Accepted
17
3064
148
s=input() answer="" for c in s: if c != "B": answer += c elif answer != "": answer = answer[:-1] else: continue print(answer)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,295
s899889265
p04030
u371132735
1577195630
Python
Python (3.4.3)
py
Accepted
17
2940
99
s = input() ans = "" for i in s: if i == "B": ans = ans[:-1] else: ans += i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,296
s217213875
p04030
u171065106
1577162180
Python
Python (3.4.3)
py
Accepted
16
2940
125
s = input() out = "" for i in s: if i == "0" or i == "1": out += i else: out = out[:-1] print(out)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,297
s131250803
p04030
u892538842
1577145177
Python
Python (3.4.3)
py
Accepted
17
3060
280
s = input() l = list(s) i = 0 r = [] while i < len(l): if len(r) == 0: if s[i] == 'B': pass else: r.append(s[i]) else: if s[i] == 'B': r.pop() else: r.append(s[i]) i += 1 print(''.join(r))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,298
s318636206
p04030
u198860923
1577143982
Python
Python (3.4.3)
py
Accepted
17
2940
163
S = list(input()) final_str = [] for key in S: if key == "B": final_str = final_str[:-1] else: final_str.append(key) print(''.join(final_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,205,299
s225882959
p04030
u710659690
1577137052
Python
Python (3.4.3)
py
Accepted
17
2940
130
S = input() text = "" for s in S: if(s=="1" or s=="0"): text = text + s else: text = text[:len(text)-1] print(text)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,300
s814244260
p04030
u006425112
1577029212
Python
Python (3.4.3)
py
Accepted
17
2940
169
s = 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,205,301
s266951276
p04030
u617515020
1577028961
Python
Python (3.4.3)
py
Accepted
17
2940
148
s=list(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,302
s645078446
p04030
u898967808
1577028656
Python
Python (3.4.3)
py
Accepted
17
2940
103
s = input() ans ='' for si in s: if si =='B': ans = ans[:-1] else: ans += si 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,303
s154572393
p04030
u470542271
1576980707
Python
Python (3.4.3)
py
Accepted
17
2940
150
s = input() ans = [] for x in s: if x == '0' or x == '1': ans.append(x) elif x == 'B' and ans: ans.pop() print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,304
s914601362
p04030
u130900604
1576969454
Python
Python (3.4.3)
py
Accepted
17
2940
122
hoge=input() ans='' for i in hoge: if i == 'B': l=len(ans) ans=ans[0:l-1] else: ans=ans+i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,305
s468825524
p04030
u130900604
1576969421
Python
Python (3.4.3)
py
Accepted
17
2940
170
hoge=input() n=len(hoge) ans='' for i in hoge: if i == 'B': l=len(ans) if l==0: pass else: ans=ans[0:l-1] else: ans=ans+i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,306
s546138210
p04030
u124498235
1576963093
Python
Python (3.4.3)
py
Accepted
17
2940
126
s = input() out = "" for i in range(len(s)): if s[i] == "0" or s[i] == "1": out += s[i] else: out = out[:-1] print (out)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,307
s200904276
p04030
u181215519
1576955515
Python
Python (3.4.3)
py
Accepted
18
2940
169
s = str( input() ) sol = "" for i in range( len(s) ) : if s[i]!="B" : sol = sol + str( s[i] ) elif len(sol) != 0 : sol = sol[:len(sol)-1] print( sol )
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,308
s640028139
p04030
u332542234
1576874377
Python
Python (3.4.3)
py
Accepted
17
2940
284
# AtCoder Beginner Contest 043 - B # -*- encoding: UTF-8 -*- s = input().upper() edited = [] for c in s: if c == "0" : edited.append("0") elif c == "1" : edited.append("1") elif c == "B" : if len(edited) > 0: edited.pop() print("".join(map(str, edited)))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,309
s060272625
p04030
u102242691
1576872892
Python
Python (3.4.3)
py
Accepted
17
2940
240
s = input() s = list(s) ans = [] for i in range(len(s)): if s[i] == "0": ans.append("0") elif s[i] == "1": ans.append("1") elif s[i] == "B": if len(ans) != 0: ans.pop() 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,310
s322880522
p04030
u112567325
1576853882
Python
Python (3.4.3)
py
Accepted
17
3060
172
s = list(input()) ans = [] for i in s: if i == "0": ans.append(i) elif i == "1": ans.append(i) else: if len(ans) != 0: ans.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,311
s969695295
p04030
u183840468
1576794507
Python
Python (3.4.3)
py
Accepted
17
2940
172
s = input() ans = '' for i in s: if i == 'B' and not ans: pass elif i == 'B' and ans: ans = ans[:-1] else: ans += i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,312
s040042474
p04030
u488884575
1576788303
Python
Python (3.4.3)
py
Accepted
17
2940
146
# B問題 s = input() out = [] for i in s: if i != "B": out.append(i) else: if len(out) != 0: out = out[:-1] 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,205,313
s457569605
p04030
u897328029
1576767181
Python
Python (3.4.3)
py
Accepted
17
2940
147
#!/usr/bin/env python3 s = input() ans = "" for c in s: if c in ["0", "1"]: ans += c elif ans: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,314
s148767855
p04030
u393253137
1576740307
Python
Python (3.4.3)
py
Accepted
17
3060
314
s=input() while 1: for i in range(len(s)): if s[i]=="B": if 0<i<len(s): s = s[:i-1]+s[i+1:] break elif i==len(s): s = s[:i] else: s = s[1:] break else: print(s) break
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,315
s468967084
p04030
u063073794
1576715148
Python
Python (3.4.3)
py
Accepted
17
2940
163
#yandy s = input() answer = '' for i in s: if i == '1' or i == '0': answer += i elif len(answer) > 0: answer = answer[:-1] print(answer)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,316
s065941075
p04030
u063073794
1576715026
Python
Python (3.4.3)
py
Accepted
17
3060
194
s=list(input()) t=[] for i in s: if i=="0": t.append("0") elif i=="1": t.append("1") else: if t==[]: pass else: t.pop() mojiretsu = ''.join(t) print (mojiretsu)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,317
s547411458
p04030
u774160580
1576642050
Python
Python (3.4.3)
py
Accepted
18
2940
190
s = input() ans = [] for i in s: if i != "B": ans.append(i) continue if len(ans) == 0: continue elif len(ans) != 0: ans.pop() print(*ans, sep="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,318
s603596500
p04030
u186206732
1576641719
Python
Python (3.4.3)
py
Accepted
17
2940
232
# ABC043 B s = input() word = '' for i in range(len(s)): if s[i] == '0': word = word + '0' elif s[i] == '1': word = word + '1' else: if len(word) != 0: word = word[:-1] print(word)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,319
s035871247
p04030
u417014669
1576640332
Python
Python (3.4.3)
py
Accepted
19
2940
108
words=input() s="" for word in words: if word=="B": s=s[:-1] else: s=s+word 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,320
s540210417
p04030
u799443198
1576616255
Python
Python (3.4.3)
py
Accepted
17
2940
98
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,321
s432010501
p04030
u426964396
1576545599
Python
Python (3.4.3)
py
Accepted
17
2940
174
a = list(input()) s = [] for i in a: if i == 'B': if s == []: pass else: s.pop(-1) else: s.append(i) print(''.join(s))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,322
s445127474
p04030
u961674365
1576538993
Python
Python (3.4.3)
py
Accepted
17
2940
119
s=input() while s.count('B')>=1: s=s.replace('1B','') s=s.replace('0B','') if s[0]=='B': s=s[1:] print(s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,323
s151306938
p04030
u202688141
1576537222
Python
Python (3.4.3)
py
Accepted
17
3060
293
set = input() words = [] for i in range(len(set)): if set[i] == "0": words.append("0") if set[i] == "1": words.append("1") if set[i] == "B": try: words.pop(-1) except: pass word = "" for i in words: word += i print(word)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,324
s905083545
p04030
u373958718
1576517690
Python
Python (3.4.3)
py
Accepted
17
2940
150
s = input() r = '' for c in s: if c == '0': r += '0' elif c == '1': r += '1' elif c == 'B': r = r[0:-1] print(r)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,325
s023132277
p04030
u254871849
1576474267
Python
Python (3.4.3)
py
Accepted
17
2940
304
import sys commands = sys.stdin.readline().rstrip() def main(): res = [] for c in commands: if c == 'B': if res: res.pop() else: res.append(c) return ''.join(res) if __name__ == '__main__': ans = main() 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,326
s165123880
p04030
u778720350
1576448803
Python
Python (3.4.3)
py
Accepted
19
3060
150
s = input() r = '' for c in s: if c == '0': r += '0' elif c == '1': r += '1' elif c == 'B': r = r[0:-1] print(r)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,327
s195245801
p04030
u860819641
1576441760
Python
Python (3.4.3)
py
Accepted
18
3060
347
s = list(input()) ans = [] answer = '' # print(s) # print(type(s)) for i in range(len(s)): if s[i] == '0': ans.append(0) elif s[i] == '1': ans.append(1) else: if len(ans) == 0: continue else: del ans[-1] for i in range(len(ans)): answer = answer +...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,328
s546680784
p04030
u309141201
1576435710
Python
Python (3.4.3)
py
Accepted
17
3064
346
s = list(input()) ans = [] answer = '' # print(s) # print(type(s)) for i in range(len(s)): if s[i] == '0': ans.append(0) elif s[i] == '1': ans.append(1) else: if len(ans) == 0: continue else: del ans[-1] for i in range(len(ans)): answer = answer +...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,329
s394657904
p04030
u905582793
1576419779
Python
Python (3.4.3)
py
Accepted
17
2940
123
s=input() ls=[] for i in range(len(s)): if s[i]!="B": ls.append(s[i]) elif ls!=[]: del ls[-1] print(*ls,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,330
s922327387
p04030
u752907799
1576400003
Python
Python (3.4.3)
py
Accepted
17
3064
112
s = input() t = "" for c in s: if c == "B": if t != "": t = t[:len(t)-1] else: t += c 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,331
s507382052
p04030
u768896740
1576379313
Python
Python (3.4.3)
py
Accepted
17
3060
321
s = input() li = [] def push_0(li): li.append(0) def push_1(li): li.append(1) def push_Back(li): if li == []: a = 1 else: li.pop(-1) for i in s: if i == '0': push_0(li) elif i == '1': push_1(li) else: push_Back(li) for i in li: 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,332
s916747069
p04030
u994521204
1576377891
Python
Python (3.4.3)
py
Accepted
17
2940
176
s=input() ans=[] for a in s: if a=='B': if ans==[]: continue else: ans=ans[0:-1] else: ans.append(a) 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,333
s270821621
p04030
u496966444
1576368651
Python
Python (3.4.3)
py
Accepted
17
2940
195
s = input() ans = [] for a in s: if a == '0': ans.append('0') elif a == '1': ans.append('1') else: if ans != []: ans.pop(-1) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,334
s770720060
p04030
u698460655
1576356518
Python
Python (3.4.3)
py
Accepted
18
2940
160
s = list(input()) ans = [] for i in range(0,len(s)): if s[i] == "B": if ans != []: 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,335
s796236469
p04030
u609814378
1576348001
Python
Python (3.4.3)
py
Accepted
17
2940
258
S = input() S_2 = list(S) ans = [] for i in range(len(S_2)): if S_2[i] == "0": ans.append("0") elif S_2[i] == "1": ans.append("1") elif S_2[i] == "B" and len(ans) !=0: del ans[-1] 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,336
s088385426
p04030
u965436898
1576262567
Python
Python (3.4.3)
py
Accepted
20
3316
254
from collections import deque s = deque(list(input())) editor = deque() while s: x = s.popleft() if x == "0": editor.append("0") elif x == "1": editor.append("1") elif x == "B" and len(editor) != 0: 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,337
s658775771
p04030
u140480594
1576252261
Python
Python (3.4.3)
py
Accepted
17
3060
200
s = str(input()) s_list = list(map(str, s)) result = "" for i in range(len(s_list)) : if s_list[i] == "1" or s_list[i] == "0" : result += s_list[i] else: result = result[:-1] print(result)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,338
s100020445
p04030
u440975163
1576172658
Python
Python (3.4.3)
py
Accepted
17
3060
227
s = list(str(input())) ln = [] for i in range(len(s)): if s[i] == '0': ln.append(s[i]) if s[i] == '1': ln.append(s[i]) if s[i] == 'B': if len(ln) != 0: ln.pop() print(''.join(ln))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,339
s175064654
p04030
u308684517
1576163161
Python
Python (3.4.3)
py
Accepted
17
2940
179
s = list(input()) ans = "" for i in s: if i == "0" or i == "1": ans += i else: if len(ans) == 0: continue else: ans = ans[0:len(ans)-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,340
s440900416
p04030
u622045059
1576123479
Python
Python (3.4.3)
py
Accepted
17
2940
147
s = input() a = [] for i in range(len(s)): if s[i] in '01': a.append(s[i]) elif(len(a) > 0): a.pop(-1) print(''.join(a))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,341
s015415709
p04030
u724428568
1576122077
Python
Python (3.4.3)
py
Accepted
17
2940
162
s_list = list(input()) ans = [] for s in s_list: if s == '0' or s == '1': ans.append(s) elif s == 'B' and len(ans) > 0: ans.pop() print(*ans, sep='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,342
s110386618
p04030
u416223629
1576067960
Python
Python (3.4.3)
py
Accepted
17
2940
114
s=list(input()) x=[] for i in s: if i=='B': x=x[:-1] else: x.append(i) print(''.join(x))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,343
s809380864
p04030
u638282348
1576048393
Python
Python (3.4.3)
py
Accepted
17
2940
178
string = input() answer = [] for c in string: if c == "B": if len(answer) != 0: answer.pop() else: answer.append(c) print("".join(answer))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,344
s888086781
p04030
u344178887
1576040596
Python
Python (3.4.3)
py
Accepted
17
2940
160
#!/usr/bin/env python3 # -*- coding: utf-8 -*- S = list(input()) R = '' for i in S: if i == 'B': R = R[:-1] else: R = 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,345
s826146340
p04030
u175590965
1576034676
Python
Python (3.4.3)
py
Accepted
17
2940
157
s = input() ans ="" for i in s: if i == "0" or i == "1": ans += i elif i == "B" and 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,205,346
s712465634
p04030
u617037231
1575983654
Python
Python (3.4.3)
py
Accepted
17
3060
236
s = input() res = '' for typed in s: if typed == '0': res = res + '0' elif typed == '1': res = res + '1' elif typed == 'B': if res != '': res = res[0:-1] #res[:-1] is equivalent 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,347
s570732704
p04030
u818283165
1575925251
Python
Python (3.4.3)
py
Accepted
17
2940
149
s = input() ans = "" for i in s: if i == "0" or i == "1": ans += i elif i == "B" and 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,205,348
s006315781
p04030
u674064321
1575840213
Python
Python (3.4.3)
py
Accepted
17
2940
140
S = list(input()) ans = '' for s in S: if s == '0': ans += '0' elif s == '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,349
s215249020
p04030
u737451238
1575795398
Python
Python (3.4.3)
py
Accepted
17
3060
211
s = input() ls = [] for mozi in s: if mozi == '0': ls.append(mozi) elif mozi == '1': ls.append(mozi) else: if len(ls) > 0: ls.pop() ans = ''.join(ls) 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,350
s901146549
p04030
u325282913
1575773697
Python
Python (3.4.3)
py
Accepted
17
2940
136
S = input() ans = '' for i in S: if i == 'B' and len(ans) > 0: ans = ans[:-1] elif i != 'B': ans += i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,351
s094966399
p04030
u235376569
1575757744
Python
Python (3.4.3)
py
Accepted
17
3060
270
a=input() a_l=len(a) ans=[] moji="" for i in range(a_l): if a[i]=="0": ans.append("0") elif a[i]=="1": ans.append("1") elif a[i]=="B" and len(ans)!=0: del ans[len(ans)-1] for i in range(len(ans)): moji+=ans[i] print(moji)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,352
s455192873
p04030
u328090531
1575740375
Python
Python (3.4.3)
py
Accepted
17
2940
112
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,353
s034164278
p04030
u780475861
1575614607
Python
Python (3.4.3)
py
Accepted
17
2940
88
s = input() a = '' for i in s: if i != 'B': a += 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,354
s859995839
p04030
u811967730
1575601622
Python
Python (3.4.3)
py
Accepted
17
2940
120
s = input() ans = "" for key in s: if key == "B": ans = ans[:-1] else: ans += key 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,355
s320139412
p04030
u020390084
1575529093
Python
Python (3.4.3)
py
Accepted
17
3060
516
#!/usr/bin/env python3 import sys def solve(s: str): answer = "" for i in range(len(s)): if s[i] == 'B': if answer: answer = answer[:len(answer)-1] else: answer += s[i] print(answer) return def main(): def iterate_tokens(): for line...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,356
s531562354
p04030
u987164499
1575483593
Python
Python (3.4.3)
py
Accepted
18
2940
190
from sys import stdin s = stdin.readline().rstrip() li = [] for i in s: if i == "0" or i == "1": li.append(i) else: if li: li.pop() print("".join(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,357
s505063492
p04030
u150603590
1575431660
Python
Python (3.4.3)
py
Accepted
17
3060
263
if __name__ == '__main__': INPUT=input() ans=[] for i in INPUT: if i=="0": ans.append("0") elif i=="1": ans.append("1") else: if len(ans)>0: ans.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,358
s299255550
p04030
u845937249
1575428460
Python
Python (3.4.3)
py
Accepted
17
3064
238
s = input() ans = '' check = 0 for i in range(len(s)): if s[i] == '0': ans = ans + '0' elif s[i] == '1': ans = ans + '1' else: if ans == '': pass else: #print(ans) ans = ans[0:len(ans)-1] #print(ans) print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,359
s055073896
p04030
u653792857
1575426603
Python
Python (3.4.3)
py
Accepted
17
2940
188
s=input() a='' for x in s: if x=='0': a+='0' elif x=='1': a+='1' else: # 文字列が空でない場合、末尾を削除 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,360
s403173793
p04030
u653792857
1575400726
Python
Python (3.4.3)
py
Accepted
17
2940
188
s=input() a='' for x in s: if x=='0': a+='0' elif x=='1': a+='1' else: # 文字列が空でない場合、末尾を削除 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,361
s995671649
p04030
u693007703
1575342413
Python
Python (3.4.3)
py
Accepted
17
2940
315
def editString(string, button): if button == 'B': if len(string) > 0: string = string[:-1] else : pass else : string += button return string string = '' buttons = input() for button in buttons: string = editString(string, button) print(string)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,362
s325341827
p04030
u777283665
1575249700
Python
Python (3.4.3)
py
Accepted
17
2940
157
s = input() ans = "" for i in s: if i == "0": ans += i elif 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,363
s907898483
p04030
u815444398
1575228466
Python
Python (3.4.3)
py
Accepted
17
2940
246
s = list(input()) try: bs = s.index('B') except: bs=-1 while bs != -1: if bs == 0: del s[bs] else: del s[bs-1] del s[bs-1] try: bs = s.index('B') except: bs = -1 print(''.join(s))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,364
s220826192
p04030
u365254117
1575148299
Python
Python (3.4.3)
py
Accepted
17
2940
171
S=input() l=[] for s in S: if s=="0" or s=="1": l.append(s) else: if l==[]: pass else: 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,365
s920220821
p04030
u078349616
1575089258
Python
Python (3.4.3)
py
Accepted
17
3060
164
s = input() ans = "" for i in range(len(s)): if s[i] == "0": ans += "0" elif s[i] == "1": ans += "1" elif s[i] == "B": ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,366
s353580956
p04030
u219197917
1575036328
Python
Python (3.4.3)
py
Accepted
17
2940
103
s = "" for si in input(): if si == "B": if s != "": s = s[:-1] else: s += si 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,367
s873111434
p04030
u754022296
1574999863
Python
Python (3.4.3)
py
Accepted
17
2940
101
s = input() l = [] for i in s: if i != "B": l.append(i) elif l: l.pop() print(*l, sep="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,368
s984518981
p04030
u088974156
1574995243
Python
Python (3.4.3)
py
Accepted
18
2940
73
S=input() t="" for x in S: 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,369
s459329090
p04030
u159290087
1574986604
Python
Python (3.4.3)
py
Accepted
17
2940
105
s = input() r = '' for x in s: if x == 'B': r = r[:-1] else: r = r + x print(r)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,370
s772850699
p04030
u676685606
1574984593
Python
Python (2.7.6)
py
Accepted
10
2568
167
s = raw_input() output = '' for c in s: if c in ('0', '1'): output += c if c == 'B': if output: output = output[:-1] print output
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,371
s010056465
p04030
u799691369
1574964464
Python
Python (3.4.3)
py
Accepted
17
2940
234
keys = input() outputs = [] for key in keys: if key == 'B': if not outputs: pass else: outputs.pop() else: outputs.append(key) for output in outputs: print(output, 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,372
s548689768
p04030
u614159574
1574929354
Python
Python (3.4.3)
py
Accepted
17
3064
277
m = input() l = [] for char in m: l.append(char) k = [] for i in range(len(l)): if l[i] == "B": if k == []: pass else: k = k[:(len(k))-1] else: k.append(l[i]) result = "" for j in k: result += j 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,373
s784367611
p04030
u055687574
1574917393
Python
Python (3.4.3)
py
Accepted
17
2940
154
s = input() ans = [] for i in s: if i in ["0", "1"]: ans.append(i) else: if len(ans): ans.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,374
s359233098
p04030
u357949405
1574887843
Python
Python (3.4.3)
py
Accepted
17
3064
156
s = input() ans = [] for c in s: if (c == 'B'): if (len(ans) > 0): ans.pop(-1) else: ans.append(c) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,375
s186489948
p04030
u788137651
1574874555
Python
Python (3.4.3)
py
Accepted
23
3444
1,545
# #    ⋀_⋀  #   (・ω・) # ./ U ∽ U\ # │* 合 *│ # │* 格 *│ # │* 祈 *│ # │* 願 *│ # │*   *│ #  ̄ # import sys sys.setrecursionlimit(10**6) input=sys.stdin.readline from math import floor,ceil,sqrt,factorial,log #log2ないyp from heapq import heappop, heappush, heappushpop from collections import Counter,defaultd...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys 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,376
s815592111
p04030
u102960641
1574784349
Python
Python (3.4.3)
py
Accepted
17
2940
139
s = input() ans = [] for i in s: if i == "0" or i == "1": ans.append(i) else: if len(ans): ans.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,205,377
s157221536
p04030
u308650788
1574769043
Python
Python (3.4.3)
py
Accepted
17
2940
168
import math commands = input() result = "" for sym in commands: if (sym == "B"): if (len(result) > 0): result = result[:-1] else: result += sym 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,378
s067426525
p04030
u172035535
1574601951
Python
Python (3.4.3)
py
Accepted
17
2940
134
S = input() ans = "" for s in S: if s == "B": if ans: ans = ans[:-1] elif s == "0": ans += "0" else: 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,379
s340262246
p04030
u094948011
1574546661
Python
Python (3.4.3)
py
Accepted
17
2940
166
S = str(input()) lis = list(S) t = '' for u in lis: if u == '0' or u == '1': t = t + u elif u == 'B' and 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,205,380