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
s190319858
p04030
u564004296
1589994095
Python
Python (3.4.3)
py
Accepted
21
3316
575
import collections #文字列を一文字ずつ取得したいとき def inputStrOnebyOne(): s = list(input()) return s #整数を一つずつリストに入れる def inputOnebyOne_Int(): a = list(int(x) for x in input().split()) return a def main(): s = inputStrOnebyOne() ret = [] for i in range(len(s)): if s[i] == "0": ret.a...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,681
s720629120
p04030
u203669169
1589990367
Python
Python (3.4.3)
py
Accepted
17
2940
112
S = input() ret = "" for i in S: if i == "B": ret = ret[:-1] else: ret += i print(ret)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,682
s591661051
p04030
u884323674
1589948531
Python
Python (3.4.3)
py
Accepted
17
2940
135
s = input() ans = "" for i in range(len(s)): if s[i] == "B": ans = ans[:-1] else: ans = ans + s[i] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,683
s612456112
p04030
u332793228
1589938450
Python
Python (3.4.3)
py
Accepted
18
2940
100
s=input() ans="" for i in s: if i=="B": ans=ans[:-1] else: ans+=i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,684
s020227118
p04030
u134019875
1589933628
Python
Python (3.4.3)
py
Accepted
18
2940
210
s = str(input()) ans = '' for i in s: if i == '0': ans += '0' elif i == '1': ans += '1' elif i == 'B' and len(ans) >= 1: 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,204,685
s370245598
p04030
u871980676
1589930287
Python
Python (3.4.3)
py
Accepted
18
3060
183
S=input() res = [] for s in S: if s=='0': res.append('0') elif s=='1': res.append('1') else: if res: res = res[:-1] print(''.join(res))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,686
s876349741
p04030
u339199690
1589916247
Python
Python (3.4.3)
py
Accepted
17
2940
226
s = input() res = [] for i in range(len(s)): if s[i] == "0": res.append("0") elif s[i] == "1": res.append("1") elif s[i] == "B": if len(res) > 0: res.pop() print("".join(res))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,687
s547507202
p04030
u728611988
1589914125
Python
Python (3.4.3)
py
Accepted
17
3060
238
s = str(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: continue else: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,688
s704595859
p04030
u888100977
1589887917
Python
Python (3.4.3)
py
Accepted
17
3064
245
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(ans) == 0: continue else: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,689
s386089636
p04030
u455957433
1589845482
Python
Python (3.4.3)
py
Accepted
17
3060
309
def main(): N = str(input()) result = "" for c in N: if c == '0': result = result + '0' elif c == '1': result = result + '1' elif c == 'B': result = result[0:len(result)-1] print(result) if __name__ == "__main__": main()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,690
s799992906
p04030
u860002137
1589827899
Python
Python (3.4.3)
py
Accepted
17
3060
268
s_list = list(map(str, input().rstrip())) ans = [] for s in s_list: if s=="0": ans.append("0") elif s=="1": ans.append("1") elif s=="B": if len(ans)==0: continue else: ans.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,691
s991507783
p04030
u025501820
1589748239
Python
Python (3.4.3)
py
Accepted
17
2940
181
S = input() ans = "" for s in S: if s == "0": ans += "0" elif s == "1": ans += "1" else: if len(ans) > 0: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,692
s682012531
p04030
u518958552
1589747590
Python
Python (3.4.3)
py
Accepted
17
3064
216
s = input() l = [] for i in s: if i == "0": l.append("0") elif i == "1": l.append("1") else: if len(l) != 0: del l[-1] else: pass print("".join(l))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,693
s298862100
p04030
u679089074
1589743109
Python
Python (3.4.3)
py
Accepted
17
2940
203
S = input() cha = list(S) plist = [] for i in cha: if i == "B": if plist != []: del plist[-1] else: plist.append(i) plist = "".join(plist) print(plist)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,694
s888208797
p04030
u614181788
1589739088
Python
Python (3.4.3)
py
Accepted
18
2940
208
s = input() t = [] for i in range(len(s)): if s[i] == "0": t.append('0') elif s[i] == "1": t.append('1') else: if len(t) != 0: del t[-1] w = ''.join(t) print(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,204,695
s229268944
p04030
u877283726
1589734892
Python
Python (3.4.3)
py
Accepted
17
2940
166
s = input() ans = [] for i in range(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,204,696
s275693307
p04030
u380534719
1589665890
Python
Python (3.4.3)
py
Accepted
17
2940
96
s=input() ans = "" for x in s: if x == 'B': ans = ans[:-1] else: ans += x print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,697
s989025357
p04030
u601575292
1589655464
Python
Python (3.4.3)
py
Accepted
18
2940
151
s = input() ans = "" for s_i in s: if s_i == "B" and ans == "": continue if s_i == "B": ans = ans[:len(ans)-1] else: ans = ans + s_i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,698
s073843147
p04030
u480300350
1589655309
Python
Python (3.4.3)
py
Accepted
18
3064
3,029
#!/usr/bin/env python3 import sys # import math # from string import ascii_lowercase, ascii_upper_case, ascii_letters, digits, hexdigits # import re # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s) # from operator import itemgette...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,699
s791624955
p04030
u634079249
1589652974
Python
Python (3.4.3)
py
Accepted
27
3932
980
import sys import os import math import bisect import collections import itertools import heapq import re import queue ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(int, sys.stdin.buffer.readline().split())) fl = lambda: list(map(float, sys.stdin.buffer.readline().split())) iln = lambda ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,700
s614215837
p04030
u595375942
1589652816
Python
Python (3.4.3)
py
Accepted
17
2940
192
S = list(input()) ans = [] for s in S: if s == '0' or s == '1': ans.append(s) else: if ans: ans.pop() else: continue print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,701
s994984588
p04030
u896847891
1589651290
Python
Python (3.4.3)
py
Accepted
17
2940
104
s = input() ans = "" for x in s: if x == 'B': ans = ans[:-1] else: ans += x print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,702
s318896813
p04030
u517630860
1589649647
Python
Python (3.4.3)
py
Accepted
18
2940
184
# -*- coding: utf-8 -*- s = list(input()) mojiretu = '' for idx, ji in enumerate(s): if ji == 'B': mojiretu = mojiretu[:-1] else: mojiretu += ji print(mojiretu)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,703
s909585587
p04030
u391819434
1589598398
Python
Python (3.4.3)
py
Accepted
17
3060
207
S=input() ans='' for i in S: if i=='0': ans+='0' elif i=='1': ans+='1' else: if len(ans)>=2: ans=ans[:len(ans)-1] else: ans='' print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,704
s571345813
p04030
u662430503
1589597953
Python
Python (3.4.3)
py
Accepted
17
2940
156
def main(): num = input() ans="" for i in range(0,len(num)): if num[i]=='B': ans=ans[:-1] else: ans += num[i] print(ans) main()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,705
s599525022
p04030
u156383602
1589592548
Python
Python (3.4.3)
py
Accepted
17
2940
177
s=input() a=[] for i in s: if i=="0": a.append("0") elif i=="1": a.append("1") else: if len(a)!=0: 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,204,706
s028086955
p04030
u629350026
1589512658
Python
Python (3.4.3)
py
Accepted
18
3064
235
s=str(input()) s=list(s) temp=[] i=0 for i in range(0,len(s)): if s[i]=="1": temp.insert(0,"1") elif s[i]=="0": temp.insert(0,"0") else: if len(temp)!=0: del temp[0] temp.reverse() temp="".join(temp) print(temp)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,707
s983146332
p04030
u518958552
1589512024
Python
Python (3.4.3)
py
Accepted
17
2940
176
s = input() a = [] for i in range(len(s)): if s[i] == "B": if len(a) != 0: a.pop(-1) else: a += s[i] print("".join(a))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,708
s761790998
p04030
u737758066
1589510351
Python
Python (3.4.3)
py
Accepted
17
2940
249
s = input() ans = [] for i in s: if i == '0': ans.append(i) elif i == '1': ans.append(i) elif i == 'B': if len(ans) != 0: # ans.remove(ans[-1]) ans = ans[0:len(ans)-1] print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,709
s712254167
p04030
u228232845
1589489518
Python
Python (3.4.3)
py
Accepted
17
3060
154
s = input() ans = '' for c in s: if c in {'0', '1'}: ans += c if c == 'B': if len(ans) != 0: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,710
s571315879
p04030
u370852395
1589476928
Python
Python (3.4.3)
py
Accepted
17
3060
243
str_list=[] tmp=[] s='' str_list=list(input()) for i in str_list: if i =='0': tmp.append('0') elif i == '1': tmp.append('1') elif i == 'B' and tmp: tmp.pop() for i in range(len(tmp)): s+=tmp[i] print(s)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,711
s821935733
p04030
u513081876
1589465003
Python
PyPy3 (7.3.0)
py
Accepted
61
61832
154
s = input() ans = '' for i in s: if i == '0' or i == '1': ans += i else: if len(ans) >= 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,204,712
s064784006
p04030
u844895214
1589463151
Python
Python (3.8.2)
py
Accepted
21
9140
386
from sys import stdin def S(): return stdin.readline().rstrip() def I(): return int(stdin.readline().rstrip()) def LS(): return list(stdin.readline().rstrip().split()) def LI(): return list(map(int,stdin.readline().rstrip().split())) s = S() ans = '' for i in range(len(s)): if s[i] == '0' or s[i] == '1': ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,713
s194823061
p04030
u888337853
1589447643
Python
Python (3.8.2)
py
Accepted
30
10316
675
import sys import re import math import collections import decimal import bisect import itertools import fractions import functools import copy import heapq import decimal sys.setrecursionlimit(10000001) INF = sys.maxsize MOD = 10 ** 9 + 7 ni = lambda: int(sys.stdin.readline()) ns = lambda: map(int, sys.stdin.readlin...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,714
s204942930
p04030
u761062383
1589392062
Python
Python (3.4.3)
py
Accepted
17
2940
156
ss = input() ans = "" for s in ss: if s == "0": ans += "0" elif s == "1": ans += "1" else: ans = ans[0:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,715
s561787459
p04030
u835534360
1589378602
Python
Python (3.4.3)
py
Accepted
17
2940
163
s = input() n = len(s) d = [] for i in range(n): if s[i] == 'B': if len(d) > 0: d.pop() else: d.append(s[i]) print(''.join(d))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,716
s232205159
p04030
u408958033
1589329340
Python
Python (3.4.3)
py
Accepted
18
3060
355
def cin(): return map(int,input().split()) def cino(test=False): if not test: return int(input()) else: return input() def cina(): return list(map(int,input().split())) a = cino(True) a = list(a) s = [] for i in a: if i=='B' and len(s)>0: s.pop() elif i=='0' or i=='1': ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,717
s738915295
p04030
u161857411
1589325324
Python
Python (3.4.3)
py
Accepted
18
3060
180
s = input() ans = "" for btn in s: if(btn == "0"): ans = ans + "0" if(btn == "1"): ans = ans + "1" if(btn == "B" and ans != ""): ans = ans[:len(ans)-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,718
s984736418
p04030
u379142263
1589300849
Python
Python (3.4.3)
py
Accepted
21
3316
404
import sys import itertools sys.setrecursionlimit(1000000000) from heapq import heapify,heappop,heappush,heappushpop import math import collections MOD = 10**9+7 s = input() q = [] for i in range(len(s)): if s[i] == "0": q.append(0) elif s[i] == "1": q.append(1) elif s[i] == "B" and len(q)!...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,719
s074003846
p04030
u278855471
1589292700
Python
Python (3.4.3)
py
Accepted
17
2940
254
S = input() string = '' for c in S: if c == '0': string = string + '0' elif c == '1': string = string + '1' elif c == 'B': if string == '': pass else: string = string[:-1] print(string)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,720
s774366062
p04030
u285891772
1589252528
Python
Python (3.4.3)
py
Accepted
37
5144
972
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2 from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby from operator import itemgetter, mul...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,721
s538432537
p04030
u459215900
1589226447
Python
Python (3.4.3)
py
Accepted
17
2940
127
inputs = str(input()) ans = "" for i in inputs: if i == 'B': ans = ans[:-1] else: ans += i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,722
s469915520
p04030
u227085629
1589167470
Python
Python (3.4.3)
py
Accepted
17
2940
145
s = input() ans = '' s_list = list(s) for num in s_list: if num == '0' or num == '1': ans += str(num) else: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,723
s848978512
p04030
u652445326
1589156463
Python
Python (3.4.3)
py
Accepted
17
2940
196
ope = input() result = list() for i in ope: if i =="0" or i == "1": result.append(i) if i =="B": if len(result)!=0: result.pop() print("".join(result))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,724
s806321200
p04030
u397953026
1589081791
Python
Python (3.4.3)
py
Accepted
17
2940
101
ans='' s=input() for i in s: if i=='B': ans=ans[:-1] else : ans+=i print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,725
s120234881
p04030
u896741788
1589079435
Python
Python (3.4.3)
py
Accepted
17
2940
114
ans="" for i in list(input()): if ans and i=="B":ans=ans[:-1] else:ans=ans+i if i!="B" else ans print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,726
s703006526
p04030
u973108807
1589053077
Python
Python (3.4.3)
py
Accepted
17
2940
126
s = input() ans = "" for k in s: if k == 'B': if ans != "": ans = ans[:len(ans)-1] else: ans += k print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,727
s732209779
p04030
u156815136
1589038093
Python
Python (3.4.3)
py
Accepted
36
5276
847
from statistics import median #import collections #aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0] from fractions import gcd from itertools import combinations # (string,3) 3回 from collections import deque from collections import defaultdict import bisect # # d = m - k[i] - k[j] # ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,728
s598293021
p04030
u276204978
1589037940
Python
Python (3.4.3)
py
Accepted
17
2940
113
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,204,729
s277246909
p04030
u562935282
1589005157
Python
Python (3.4.3)
py
Accepted
17
2940
279
def main(): s = input() ans = '' b = 0 for c in reversed(s): if c == 'B': b += 1 else: if b: b -= 1 continue ans = c + ans print(ans) if __name__ == '__main__': main()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,730
s720059156
p04030
u803617136
1588988682
Python
Python (3.4.3)
py
Accepted
17
2940
159
s = list(input()) ans = [] for c in s: if c == 'B': if len(ans) > 0: ans = ans[:-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,204,731
s698995844
p04030
u784022244
1588987759
Python
Python (3.4.3)
py
Accepted
17
2940
127
S=input() ans="" for s in S: if s!="B": ans+=s else: if ans!="": ans=ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,732
s352270072
p04030
u922416423
1588987554
Python
Python (3.4.3)
py
Accepted
19
2940
203
s = str(input()) ans = '' for i in range(len(s)): if s[i] == '0': ans = ans + '0' elif s[i] == '1': ans = ans + '1' else: ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,733
s633245732
p04030
u054514819
1588986893
Python
Python (3.4.3)
py
Accepted
20
3064
185
S = list(input()) ans = [] for s in S: if s == '0': ans.append('0') elif s=='1': ans.append('1') elif len(ans)>=1: ans.pop() print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,734
s890585849
p04030
u814986259
1588986763
Python
Python (3.4.3)
py
Accepted
17
2940
141
s = input() ans = [] for x in s: if x != 'B': ans.append(x) else: if ans: ans.pop() print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,735
s872818568
p04030
u046158516
1588986754
Python
Python (3.4.3)
py
Accepted
18
3060
348
def convert(s): # initialization of string to "" new = "" # traverse in the string for x in s: new += x # return string return new s=input() a=[] for i in range(len(s)): if s[i]=='0': a.append('0') elif s[i]=='1': a.append('1') else: if len(a)>0: ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,736
s735461946
p04030
u029000441
1588986742
Python
Python (3.4.3)
py
Accepted
22
3316
966
import sys input = sys.stdin.readline sys.setrecursionlimit(10**7) from collections import Counter, deque from collections import defaultdict from itertools import combinations, permutations, accumulate, groupby, product from bisect import bisect_left,bisect_right from heapq import heapify, heappop, heappush from math ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,737
s329642020
p04030
u489959379
1588986732
Python
Python (3.4.3)
py
Accepted
17
3060
382
import sys sys.setrecursionlimit(10 ** 7) f_inf = float('inf') mod = 10 ** 9 + 7 def resolve(): s = input() res = [] for i in s: if i == "0": res.append("0") elif i == "1": res.append("1") else: if len(res) > 0: res.pop() p...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,738
s072845956
p04030
u374802266
1588986700
Python
Python (3.4.3)
py
Accepted
17
3060
217
s=input() a=[] for i in range(len(s)): if s[i]=='0': a.append(0) elif s[i]=='1': a.append(1) else: if len(a)!=0: a.pop(-1) for i in range(len(a)): 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,204,739
s074324841
p04030
u721316601
1588986669
Python
Python (3.4.3)
py
Accepted
17
2940
143
S = input() ans = [] for s in S: if s == '0': ans.append(s) elif s == '1': ans.append(s) elif ans: ans.pop() print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,740
s186076641
p04030
u691018832
1588986644
Python
Python (3.4.3)
py
Accepted
17
2940
299
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) s = read().rstrip().decode() ans = '' for ss in s: if ss == 'B': if ans: ans = ans[:-1] else: ans += ss print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,741
s196838709
p04030
u241159583
1588986640
Python
Python (3.4.3)
py
Accepted
18
3060
176
s = input() ans = [] ret = True for v in s: if v == "0": ans.append("0") elif v == "1": ans.append("1") else: if not ans:continue ans.pop(-1) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,742
s326972714
p04030
u535171899
1588986628
Python
Python (3.4.3)
py
Accepted
17
3060
260
s = input() ans_li=[] for i in range(len(s)): if s[i]==str(0): ans_li.append(str(0)) if s[i]==str(1): ans_li.append(str(1)) if s[i]=='B': if len(ans_li)==0: continue del ans_li[-1] print(''.join(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,204,743
s163444672
p04030
u056358163
1588985021
Python
Python (3.4.3)
py
Accepted
18
2940
150
S = input() ans = [] for s in S: if s == 'B': if len(ans) > 0: ans.pop(-1) else: ans.append(s) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,744
s612585998
p04030
u927870520
1588907664
Python
Python (3.4.3)
py
Accepted
17
2940
141
N=input() ans=[] for i in N: if i=='B': if not ans==[]: ans.pop() else: ans.append(i) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,745
s226479199
p04030
u902151549
1588905475
Python
Python (3.4.3)
py
Accepted
45
5704
3,575
# coding: utf-8 import re import math from collections import defaultdict import itertools from copy import deepcopy import random from heapq import heappop,heappush import time import os import queue import sys import datetime from functools import lru_cache #@lru_cache(maxsize=None) readline=sys.stdin.readline sys.se...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,746
s290551129
p04030
u202826462
1588903164
Python
Python (3.4.3)
py
Accepted
18
3064
241
s = list(input()) ans = [] 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: del ans[len(ans) - 1] ans = ''.join(ans) print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,747
s971494807
p04030
u306516971
1588897212
Python
Python (3.4.3)
py
Accepted
18
3060
204
s = input() ans = "" for i in range(len(s)): if s[i] == "0": ans = ans + "0" elif s[i] == "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,204,748
s491204179
p04030
u914797917
1588858686
Python
Python (3.4.3)
py
Accepted
17
2940
148
s=input() ans='' for i in s: if i=='0': ans+='0' elif i=='1': ans+='1' elif i=='B' and s!='': 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,204,749
s128741456
p04030
u730257868
1588858265
Python
Python (3.4.3)
py
Accepted
17
3064
455
s = str(input()) t = 0 a = list() p = 0 for x in s: if x == "0": if p==0: a.append("0") else: a[t] = "0" p -= 1 t +=1 elif x == "1": if p==0: a.append("1") else: a[t] = "1" p-=1 t +=1 eli...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,750
s405696598
p04030
u190079347
1588826429
Python
Python (3.4.3)
py
Accepted
17
3060
204
s = [p for p in 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.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,751
s704377488
p04030
u124212130
1588825455
Python
Python (3.4.3)
py
Accepted
17
3064
262
S = input() ANSlist = [] for i in range(len(S)): if S[i] == '0': ANSlist.append('0') elif S[i] == '1': ANSlist.append('1') elif S[i] == 'B': if len(ANSlist) >=1: del ANSlist[-1] ANS = ''.join(ANSlist) print(ANS)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,752
s944182868
p04030
u106971015
1588820452
Python
Python (3.4.3)
py
Accepted
21
3316
233
from collections import deque s = input() ans = deque() for i in s: if i == '0' or i == '1': ans.append(i) else: if len(ans) >= 1: ans.pop() else: continue print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,753
s136309555
p04030
u483748949
1588808606
Python
Python (3.4.3)
py
Accepted
18
2940
134
s = input() disp = '' for i in range(len(s)): if s[i] == 'B': disp = disp[0:-1] else: disp += s[i] print(disp)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,754
s843338773
p04030
u393486651
1588792018
Python
Python (3.4.3)
py
Accepted
17
3060
252
def main(): s = input() ans = "" for c in s: if(c == "0"): ans += "0" elif(c == "1"): ans += "1" elif(c == "B"): if(ans != ""): ans = ans[0:len(ans) - 1] print(ans) if __name__ == "__main__": main()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,755
s715117376
p04030
u444722572
1588783104
Python
Python (3.4.3)
py
Accepted
20
3316
327
from collections import deque s=deque(list(input())) p=deque() for i in range(len(s)): w=s.popleft() if w=="0": p.append("0") elif w=="1": p.append("1") else: if len(p)==0: continue else: p.pop() for i in range(len(p)): print(p[i],end="") ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,756
s753312396
p04030
u883040023
1588716759
Python
Python (3.4.3)
py
Accepted
17
2940
188
S = input() n = len(S) stack = [] for i in range(n): s = S[i] if s != "B": stack.append(s) elif len(stack) > 0: stack.pop() print("".join(stack))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,757
s629713195
p04030
u029000441
1588715744
Python
Python (3.4.3)
py
Accepted
21
3316
861
import sys input = sys.stdin.readline sys.setrecursionlimit(10**7) from collections import Counter, deque from collections import defaultdict from itertools import combinations, permutations, accumulate, groupby, product from bisect import bisect_left,bisect_right from heapq import heapify, heappop, heappush from math ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,758
s695972313
p04030
u551109821
1588715440
Python
Python (3.4.3)
py
Accepted
17
2940
159
s = list(input()) ans = [] for i in s: if i == 'B' : if len(ans)!= 0: del ans[-1] else: ans.append(i) print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,759
s478415690
p04030
u702208001
1588706979
Python
Python (3.4.3)
py
Accepted
17
3064
91
S = input() t = '' for s in S: if s == 'B': t = t[:-1] else: t += s print(t)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,760
s491834209
p04030
u943057856
1588705942
Python
Python (3.4.3)
py
Accepted
17
2940
182
s=list(input()) ans=[] for i in s: if i=="B": try: ans.pop(-1) except IndexError: pass else: ans.append(i) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,761
s402025203
p04030
u588785393
1588702737
Python
Python (3.4.3)
py
Accepted
18
2940
151
s = list(input()) ans = [] for i in s: if i == 'B': if len(ans) != 0: ans.pop() else: ans += i print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,762
s037552492
p04030
u788337030
1588701425
Python
Python (3.4.3)
py
Accepted
17
2940
263
s = input() editor = "" for x in s: if x == "0": editor = editor + "0" elif x == "1": editor = editor + "1" else: if len(editor) == 0: continue else: editor = editor[:len(editor)-1] print(editor)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,763
s265633185
p04030
u712445873
1588694996
Python
Python (3.4.3)
py
Accepted
17
2940
142
s = str(input()) text = "" for i in s: if i == "0" or i == "1": text += i else: text = text[0: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,204,764
s051197956
p04030
u188745744
1588692134
Python
Python (3.4.3)
py
Accepted
17
3060
241
A = list(input()) B = [] for i in range(len(A)): if A[i] == "0": B.append("0") elif A[i] == "1": B.append("1") else: try: B.pop(-1) except IndexError: pass print("".join(B))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,765
s816473445
p04030
u113750443
1588692110
Python
Python (3.4.3)
py
Accepted
17
3064
441
def nyu(): S = list(map(str,input())) return S def kansu(LS): ans = [] ans_str ="" for ls in range(len(LS)): if LS[ls] == "0": ans.append("0") elif LS[ls] == "1": ans.append("1") else: if len(ans) > 0 : ans.pop(...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,766
s008800748
p04030
u085334230
1588656164
Python
Python (3.4.3)
py
Accepted
17
2940
176
S = input() res = "" for i in range(len(S)): if S[i] == "0": res += "0" if S[i] == "1": res += "1" if S[i] == "B": 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,204,767
s976419706
p04030
u277641173
1588606925
Python
Python (3.4.3)
py
Accepted
18
3060
216
s=input() moji=[] for i in range(0,len(s)): if s[i]=="1": moji.append("1") elif s[i]=="0": moji.append("0") else: try: moji.pop(-1) except IndexError: pass kk="" print(kk.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,204,768
s540700254
p04030
u193264896
1588606543
Python
Python (3.4.3)
py
Accepted
21
3316
460
import sys from collections import deque readline = sys.stdin.buffer.readline sys.setrecursionlimit(10 ** 8) INF = float('inf') MOD = 10 ** 9 + 7 def main(): S = input() L = len(S) d = deque() for i in range(L): if S[i]=='0': d.append(0) elif S[i]=='1': d.appen...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,769
s026160220
p04030
u244416763
1588573897
Python
Python (3.4.3)
py
Accepted
18
3060
215
s = str(input()) ans = [] for i in range(len(s)): if s[i] == "0": ans.append("0") elif s[i] == "1": ans.append("1") else: if len(ans): del(ans[-1]) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,770
s762310308
p04030
u318127926
1588545028
Python
Python (3.4.3)
py
Accepted
17
2940
179
s = input() console = [] for c in s: if c=='B': if len(console)>0: console.pop() else: console.append(c) for c in console: 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,204,771
s311167139
p04030
u589047182
1588541588
Python
Python (3.4.3)
py
Accepted
17
3060
213
N = input() ans = '' for i in range(len(N)): if(ans == '' and N[i] == "B"): pass elif(ans == '' and N[i] != "B"): ans = N[i] elif(N[i] == "B"): ans = ans[:-1] else: ans += N[i] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,772
s461013650
p04030
u106797249
1588541572
Python
Python (3.4.3)
py
Accepted
18
3060
241
def resolve(): S = input() res = "" for s in S: if s in ['0', '1']: res += s else: if len(res) > 0: res = res[:-1] print(res) if '__main__' == __name__: resolve()
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,773
s435673481
p04030
u082945913
1588540007
Python
Python (3.4.3)
py
Accepted
17
2940
161
s = input() ans = '' for i in s: if i == '1': ans += '1' elif i == '0': ans += '0' elif i == 'B': ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,774
s141765407
p04030
u131264627
1588536239
Python
Python (3.4.3)
py
Accepted
17
2940
145
s = input() ans = [] for i in s: if i == 'B': if len(ans) > 0: ans.pop(-1) else: ans += i print(''.join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,775
s889665640
p04030
u260764792
1588533951
Python
Python (3.4.3)
py
Accepted
17
3060
189
s=input() res=[] for i in s: #print(i) if i=='0': res+=i #print(res) elif i=='1': res+=i #print(res) else: if res!=[]: res.pop(len(res)-1) #print(res) print(''.join(res))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,776
s406634031
p04030
u383450070
1588523728
Python
Python (3.4.3)
py
Accepted
17
3060
265
moji = list(str(input())) lst = [] for i in range(len(moji)): if moji[i]=="0": lst.append("0") elif moji[i]=="1": lst.append("1") elif moji[i]=="B" and len(lst)>0: del lst[-1] elif moji[i]=="B" and len(lst)==0: continue; print(''.join(lst))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,777
s864358678
p04030
u126844573
1588471184
Python
Python (3.4.3)
py
Accepted
17
2940
160
s, s_back = input(), "" while "B" in s: s = s.replace("1B", "").replace("0B", "") if s_back == s: break s_back = s print(s.replace("B", ""))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,778
s758355277
p04030
u922851354
1588466886
Python
Python (3.4.3)
py
Accepted
17
2940
149
s=input() x='' for i in s: if i=='0': x+='0' elif i=='1': x+='1' elif i=='B': if len(x)>0: 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,204,779
s331995022
p04030
u788703383
1588452197
Python
Python (3.4.3)
py
Accepted
17
2940
154
s = input() a = "" for S in s: if S == 'B': if a: a = a[:-1] else: continue else: a += S print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,780