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
s853500904
p04029
u107077660
1471137030
Python
Python (3.4.3)
py
Accepted
40
3064
62
N = int(input()) a = 0 for i in range(1,N+1): a += i print(a)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,181
s279646028
p04029
u341469181
1471136991
Python
Python (3.4.3)
py
Accepted
39
3188
67
def solve(N): return N * (N + 1) // 2 print(solve(int(input())))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,182
s403361284
p04029
u492932526
1471136898
Python
Python (2.7.6)
py
Accepted
27
2568
46
n = int(raw_input()) s = n*( n+1)/2 print s
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,183
s496893657
p04029
u562283476
1471136879
Python
Python (3.4.3)
py
Accepted
40
3188
41
N = int(input()) print(sum(range(1,N+1)))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,184
s237789321
p04029
u948287304
1471136834
Python
Python (2.7.6)
py
Accepted
25
2568
46
print sum([i for i in range(1, input() + 1)])
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,185
s993219366
p04029
u982653403
1471136682
Python
Python (3.4.3)
py
Accepted
39
3188
33
print(sum(range(int(input())+1)))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,186
s460302366
p04029
u391812144
1471136655
Python
Python (3.4.3)
py
Accepted
38
3064
88
n = int(input()) result = 0 for i in range(1,n+1): result = result + i print(result)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,187
s029266072
p04029
u307757209
1471136641
Python
Python (2.7.6)
py
Accepted
25
2568
60
x=input() sum=0 for i in range(1,x+1): sum+=i print sum
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,188
s075023687
p04029
u123756661
1471136611
Python
Python (2.7.6)
py
Accepted
27
2568
71
n=int(raw_input()) print (1+n)*(n/2) if n%2==0 else (1+n)*(n/2)+(1+n)/2
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,189
s637851592
p04029
u869328641
1471136597
Python
Python (3.4.3)
py
Accepted
38
3064
38
n = int(input()) print(int(n*(n+1)/2))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,190
s977672230
p04029
u352021237
1471136560
Python
Python (2.7.6)
py
Accepted
26
2568
34
n=int(raw_input()) print n*(n+1)/2
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,191
s194692619
p04029
u821262411
1471136557
Python
Python (3.4.3)
py
Accepted
39
3064
33
n=int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,192
s712820936
p04029
u786082266
1471136545
Python
Python (2.7.6)
py
Accepted
26
2568
61
a = input() a += 1 s = 0 for i in range(a): s += i print s
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,193
s852787679
p04029
u966695411
1471136533
Python
Python (3.4.3)
py
Accepted
43
3188
72
#! /usr/bin/env python3 print(sum(x for x in range(1, int(input())+1)))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,194
s882138223
p04029
u010110540
1471136513
Python
Python (3.4.3)
py
Accepted
47
3188
34
s = int(input()) print(s*(s+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,195
s187590973
p04029
u258647915
1471136472
Python
Python (2.7.6)
py
Accepted
27
2700
39
n = int(raw_input()) print n*(n+1) / 2
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,196
s971581514
p04029
u758661720
1471136469
Python
Python (2.7.6)
py
Accepted
26
2568
64
n=input() sum = 0 for i in range(n): sum += (i+1) print sum
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,197
s287561212
p04029
u327854949
1471136467
Python
Python (2.7.6)
py
Accepted
27
2572
43
n = int(raw_input()) print sum(range(n+1))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,198
s600932326
p04029
u776189585
1471136464
Python
Python (2.7.6)
py
Accepted
26
2568
36
n = int(raw_input()) print n*(n+1)/2
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,199
s978741939
p04029
u986399983
1471136449
Python
Python (2.7.6)
py
Accepted
26
2572
40
n = int(raw_input()) print n * (n+1) / 2
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,200
s058066514
p04029
u010733367
1471136436
Python
Python (3.4.3)
py
Accepted
38
3064
68
N = int(input()) ans = sum([i for i in range(1, N + 1)]) print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,201
s536496619
p04029
u798181098
1471136429
Python
Python (3.4.3)
py
Accepted
37
3064
38
a = int(input()) print(a * (a+1) // 2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,204,202
s273800428
p04030
u782001565
1601515017
Python
Python (3.8.2)
py
Accepted
22
9076
130
s = input() ans = '' for i in range(len(s)): if s[i] == 'B': ans = ans[:-1] else: 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,203
s897237997
p04030
u864785784
1601434837
Python
Python (3.8.2)
py
Accepted
27
8928
153
s = str(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,204,204
s710535190
p04030
u825429469
1601418716
Python
Python (3.8.2)
py
Accepted
27
8952
226
S = str(input()) stack = [] for s in S: if s == '0' or s == '1': stack.append(s) elif s == 'B': if not stack: continue else: stack.pop() for s in stack:print(s,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,205
s669103022
p04030
u821251381
1601418113
Python
Python (3.8.2)
py
Accepted
25
8876
139
S=list(input()) ans=[] for s in S: if s == "B": if len(ans)>0: del ans[-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,206
s646985956
p04030
u351221036
1601401164
Python
Python (3.8.2)
py
Accepted
27
8948
366
first_str =input() input_list = list(first_str) total_list = list() for i in input_list: if i == "0": total_list.append("0") elif i == "1": total_list.append("1") else: if not total_list: pass else: total_list.pop(-1) total = "".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,207
s387910325
p04030
u148981246
1601325576
Python
Python (3.8.2)
py
Accepted
27
8912
171
s = input() out ='' for x in s: if x != 'B': out += x else: if out == '': continue else: out = out[:-1] print(out)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,208
s010670262
p04030
u883621917
1601250666
Python
PyPy3 (7.3.0)
py
Accepted
70
61792
202
import sys input = sys.stdin.readline sys.setrecursionlimit(10 ** 7) s = [] for v in input().strip(): if v != 'B': s.append(v) else: if s: s.pop() print(''.join(s))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,209
s260817648
p04030
u513211419
1601237201
Python
Python (3.8.2)
py
Accepted
26
8840
204
s = input() ans = "" for char in s: if char == 'B': if ans == "": pass else: l = len(ans) ans = ans[0:l-1] else: ans += char 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,210
s589339920
p04030
u513211419
1601237032
Python
Python (3.8.2)
py
Accepted
27
9032
208
s = input() ans = "" for char in s: if char != 'B': ans += char else: if ans == "": pass else: le = len(ans) ans = ans[0:le - 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,211
s233081137
p04030
u015084832
1601178091
Python
Python (3.8.2)
py
Accepted
27
9124
360
def main(): s = str(input()) ans = [] for val in s : if val == "B" and ans == [] : pass elif val == "B" and ans != [] : ans.pop(-1) else : ans.append(val) ans_str = "" for val in ans : ans_str = ans_str + val print(ans_str) ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,212
s493927826
p04030
u521323621
1601173105
Python
Python (3.8.2)
py
Accepted
26
9084
101
i = input() ans = "" for s in i: if s != "B": ans += s 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,213
s230198769
p04030
u931394483
1601145496
Python
Python (3.8.2)
py
Accepted
23
8896
166
s = [ss for ss in str(input())] ans = [] for i in s: if i == "0" or i == "1": ans.append(i) elif len(ans) > 0: ans.pop(-1) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,214
s190285676
p04030
u654470292
1601064898
Python
PyPy3 (7.3.0)
py
Accepted
61
61760
163
s=input() ans="" for i in s: if i=="0": ans+="0" elif i=="1": ans+="1" else: if len(ans)>0: ans=ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,215
s860561309
p04030
u161778051
1600964410
Python
Python (3.8.2)
py
Accepted
26
8848
146
s = input() a = [] for c in s: if c in ['0', '1']: a.append(c) 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,216
s991649198
p04030
u453623947
1600912458
Python
Python (3.8.2)
py
Accepted
30
8984
224
s = list(input()) 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" and len(ans) > 0 : del ans[-1] print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,217
s648603081
p04030
u113835532
1600827614
Python
Python (3.8.2)
py
Accepted
26
9060
259
def answer(s: str) -> str: result = '' for c in s: if c == 'B': result = result[:-1] else: result += c return result def main(): s = input() print(answer(s)) 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,218
s346762028
p04030
u080364835
1600796339
Python
Python (3.8.2)
py
Accepted
28
9008
130
s = input() ans = '' for i in range(len(s)): if s[i] != 'B': ans += s[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,204,219
s700924107
p04030
u045505231
1600756035
Python
Python (3.8.2)
py
Accepted
34
9276
229
import math from datetime import date def main(): s = input() ans = [] for c in s: if c != 'B': ans.append(c) else: if len(ans) != 0: ans.pop(); line = "" for c in ans: line += c print(line) 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,220
s182525959
p04030
u244434589
1600740232
Python
Python (3.8.2)
py
Accepted
28
9084
242
s = input() l = [] for i in range(len(s)): if s[i] == '0': l.append('0') elif s[i] == '1': l.append('1') else: if l == []: continue 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,204,221
s148162806
p04030
u749491107
1600706486
Python
Python (3.8.2)
py
Accepted
26
9116
202
s = input() x = [] for i in range(len(s)): if s[i] == "0": x.append("0") elif s[i] == "1": x.append("1") elif s[i] == "B" and len(x) > 0 : x.pop(-1) print("".join(x))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,222
s902147013
p04030
u825685913
1600651528
Python
Python (3.8.2)
py
Accepted
25
8988
222
s = input() ans = "" for _ in range(len(s)): if s[0] == "0": ans += "0" s = s[1:] elif s[0] == "1": ans += "1" s = s[1:] else: s = 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,204,223
s613191944
p04030
u699296734
1600635070
Python
Python (3.8.2)
py
Accepted
29
9028
175
s = input() res = "" for i in range(len(s)): if s[i] == "1" or s[i] == "0": res += s[i] elif s[i] == "B" and len(res) != 0: 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,224
s426079187
p04030
u367397360
1600633823
Python
Python (3.8.2)
py
Accepted
31
9064
258
# Sの入力受付 S = input() # Sを順に読み込みBがあったとき直前の文字と一緒に消去 STR = "" for i in S: STR = STR + i if i == "B" and STR == "": STR = "" elif i == "B": STR = STR[:len(STR) - 2] print(STR)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,225
s250691241
p04030
u348216768
1600606436
Python
Python (3.8.2)
py
Accepted
24
9112
123
s=input() output='' for i in s: if i!='B': output+=i 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,204,226
s081206484
p04030
u758933970
1600491843
Python
Python (3.8.2)
py
Accepted
25
8972
243
opperations = list(input()) display_stack = [] for opperation in opperations: if opperation == "B": if display_stack: display_stack.pop() else: display_stack.append(opperation) print(''.join(display_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,227
s528465415
p04030
u392788668
1600489928
Python
Python (3.8.2)
py
Accepted
30
9040
212
s = list(input()) w_len = len(s) word = [] for x in range(w_len): if s[x] == 'B': if word != []: word.pop(-1) else: word.append(s[x]) result = '' for y in word: result = result+y print(result)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,228
s448850365
p04030
u347397127
1600464190
Python
PyPy3 (7.3.0)
py
Accepted
63
61788
166
S=input() ans = [] for i in range(len(S)): if S[i] == "B": if len(ans) != 0: del ans[len(ans)-1] else: ans.append(S[i]) print("".join(map(str,ans)))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,229
s882442453
p04030
u855831834
1600459176
Python
Python (3.8.2)
py
Accepted
28
9308
186
from collections import deque S = input() ans = deque([]) for s in S: if s=="B": if ans: ans.pop() 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,230
s601808544
p04030
u977605150
1600458403
Python
Python (3.8.2)
py
Accepted
28
9116
263
a = list(input()) ans = [] for i in range(len(a)): if a[i] == '0': ans.append('0') elif a[i] == '1': ans.append('1') elif a[i] == 'B': if ans == []: continue else: 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,231
s326913698
p04030
u306412379
1600435029
Python
Python (3.8.2)
py
Accepted
30
8932
230
s = list(input()) x = len(s) a = [] for i in range(x): if s[i] == '0': a.append('0') elif s[i] == '1': a.append('1') elif s[i] == 'B': if a == []: continue else: a.pop(-1) b = ''.join(a) print(b)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,232
s999899727
p04030
u035885928
1600407325
Python
Python (3.8.2)
py
Accepted
24
8936
164
s=input() fin="" for c in s: if c=='1': fin+="1" elif c=='0': fin+="0" else: if len(fin)>0: fin=fin[:-1] print(fin)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,233
s683379590
p04030
u911449886
1600312283
Python
PyPy3 (7.3.0)
py
Accepted
59
61904
201
s = input() arr = [] for i in s: if i=="B": if not arr: continue arr.pop(-1) else: arr.append(i) ans = "" for i in arr: ans = "".join([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,234
s193763015
p04030
u698868214
1600273571
Python
Python (3.8.2)
py
Accepted
24
8968
192
s = input() n = len(s) ans = [] for i in range(n): if s[i] == "0": ans.append("0") elif s[i] == "1": ans.append("1") else: if ans: ans.pop() print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,235
s003590512
p04030
u794521826
1600222516
Python
Python (3.8.2)
py
Accepted
25
8976
214
s = input() stack = [] for c in s: if c == "B": if len(stack) == 0: continue else: stack.pop(-1) else: stack.extend(c) for c in stack: 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,236
s933018137
p04030
u612975321
1600215083
Python
Python (3.8.2)
py
Accepted
28
9040
159
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,237
s143514729
p04030
u014139588
1600205788
Python
Python (3.8.2)
py
Accepted
28
9044
149
s = input() ans = [] for i in range(len(s)): if s[i] == "B": if len(ans) != 0: ans.pop() else: ans.append(s[i]) print("".join(ans))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,238
s124616111
p04030
u044378346
1600185986
Python
Python (3.8.2)
py
Accepted
25
9044
170
s = input() ans = '' for i in range(len(s)): if s[i] == '0': ans += '0' elif s[i] == '1': ans += '1' else: if ans != '': ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,239
s621197122
p04030
u317508154
1600152752
Python
Python (3.8.2)
py
Accepted
29
8976
225
s = input() ans = '' for i in range(len(s)): if s[i] == '0': ans += '0' elif s[i] == '1': ans += '1' else: if ans != '': ans = ans[:-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,240
s749480957
p04030
u293703041
1600099942
Python
Python (3.8.2)
py
Accepted
30
9224
975
# https://atcoder.jp/contests/abc043/tasks/abc043_b """ 双方向キューをつかって実装する このどれかの操作ができる * 0 をキューに入れる * 1 をキューに入れる * キューの最後のものを出す 注意: キューが空の場合にバックスペースをしても何も起きないようにする """ from collections import deque q = deque() s = input() for operation in s: if operation == "0": # 右端に0を追加 q.append("0") elif...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,241
s089009703
p04030
u381585104
1600068537
Python
Python (3.8.2)
py
Accepted
29
8960
141
s = input() st = [] for e in s: if e == 'B': if len(st) != 0: st.pop() else: st.append(int(e)) print(''.join(map(str,st)))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,242
s707230922
p04030
u641446860
1599967645
Python
Python (3.8.2)
py
Accepted
25
8936
88
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,204,243
s335516904
p04030
u614181788
1599960258
Python
Python (3.8.2)
py
Accepted
29
9040
184
s = input() L = [] for x in s: if x == "0": L.append("0") elif x == "1": L.append("1") else: if len(L) >= 1: 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,204,244
s372955387
p04030
u477320129
1599957183
Python
Python (3.8.2)
py
Accepted
30
9088
600
#!/usr/bin/env python3 import sys def solve(s: str): a = [] for c in s: if c == "B": if a: a.pop() else: a.append(c) return "".join(a) # Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools def main(): def iterate_tokens(): ...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,245
s176575426
p04030
u666550725
1599882760
Python
PyPy3 (7.3.0)
py
Accepted
61
61680
174
s = input() ans = "" for i in range(len(s)): if s[i] == "0": ans += "0" elif s[i] == "1": ans += "1" 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,246
s998786135
p04030
u006880673
1599864529
Python
PyPy3 (7.3.0)
py
Accepted
62
61732
189
s = input() stack = [] for i in range(len(s)): if s[i] == "B": if not stack: continue stack.pop() else: stack.append(s[i]) print("".join(stack))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,247
s218626697
p04030
u630211216
1599829805
Python
Python (3.8.2)
py
Accepted
28
9064
103
s=input() ans="" for c in s: if c=='B': if ans: ans=ans[0:-1] else: ans+=c print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,248
s700358530
p04030
u918422508
1599812087
Python
Python (3.8.2)
py
Accepted
26
8800
209
s = str(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() 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,249
s383323483
p04030
u999503965
1599789997
Python
Python (3.8.2)
py
Accepted
27
9032
149
s=str(input()) l=[] for i in s: if i=="0" or i=="1": l.append(i) elif i=="B" and len(l)!=0: l.pop(len(l)-1) 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,204,250
s041253541
p04030
u998733244
1599774325
Python
Python (3.8.2)
py
Accepted
30
8960
170
#!/usr/bin/env python3 S = input() ret = '' for i in range(len(S)): if S[i] == '0': ret += '0' elif S[i] == '1': ret += '1' else: ret = ret[:-1] print(ret)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,251
s315768079
p04030
u759109971
1599752357
Python
Python (3.8.2)
py
Accepted
25
9036
207
s = str(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() 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,252
s430824522
p04030
u629540524
1599712792
Python
Python (3.8.2)
py
Accepted
28
9032
163
s = input() a = "" for i in s: if i == "0": a+="0" elif i == "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,204,253
s224946384
p04030
u629540524
1599712774
Python
PyPy3 (7.3.0)
py
Accepted
62
61712
163
s = input() a = "" for i in s: if i == "0": a+="0" elif i == "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,204,254
s251964221
p04030
u074161135
1599694575
Python
Python (3.8.2)
py
Accepted
27
9060
127
n = input() str = '' for i in n: if i == '0' or i == '1': str = str + i if i == 'B': str = str[:-1] print(str)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,255
s020578597
p04030
u174040991
1599687765
Python
Python (3.8.2)
py
Accepted
24
8980
96
n = "" command = input() for i in command: if i == "B": n=n[:-1] else: n+=i print(n)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,256
s171817892
p04030
u417309772
1599646490
Python
Python (3.8.2)
py
Accepted
26
8876
78
buf='' for c in input(): if c=='B': buf=buf[:-1] else: buf += c print(buf)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,257
s701098815
p04030
u816631826
1599625641
Python
Python (3.8.2)
py
Accepted
24
9092
124
x=input() z='' for i in x: if i == '0': z= z+i elif i == '1': z= z+i elif i == 'B': z= z[:-1] print(z)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,258
s912672727
p04030
u044964932
1599593072
Python
Python (3.8.2)
py
Accepted
30
9228
379
from collections import deque def main(): ss = list(input()) ans = deque([]) for s in ss: if s == '0': ans.append(s) elif s == '1': ans.append(s) else: if len(ans) == 0: pass else: ans.pop() print(*...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,259
s992471016
p04030
u748241164
1599579818
Python
Python (3.8.2)
py
Accepted
30
8940
242
S = str(input()) ans = [] for i in range(len(S)): if S[i] == "B": if ans == []: continue else: ans = ans[:-1] else: ans.append(S[i]) #print(ans) #print(ans) for i in range(len(ans)): print(ans[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,260
s200649310
p04030
u595952233
1599538515
Python
Python (3.8.2)
py
Accepted
27
8932
177
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,261
s275588010
p04030
u607563136
1599516997
Python
Python (3.8.2)
py
Accepted
28
9072
213
S = input() stack = [] for s in S: if not stack and s!="B": stack.append(s) elif s=="B": if stack:stack.pop() else:continue else: stack.append(s) 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,262
s843713381
p04030
u980205854
1599500140
Python
PyPy3 (7.3.0)
py
Accepted
73
65692
753
import sys from sys import exit from collections import deque from bisect import bisect_left, bisect_right, insort_left, insort_right #func(リスト,値) from heapq import heapify, heappop, heappush from math import * sys.setrecursionlimit(10**6) INF = 10**20 eps = 1.0e-20 MOD = 10**9+7 def mint(): return map(int,input(...
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,263
s025029613
p04030
u583507988
1599486105
Python
Python (3.8.2)
py
Accepted
29
8996
208
s=input() data=[] for i in range(len(s)): if s[i]=='0': data.append('0') elif s[i]=='1': data.append('1') else: if len(data)==0: continue else: data.pop() print(*data,sep='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,264
s295283097
p04030
u624613992
1599450647
Python
Python (3.8.2)
py
Accepted
29
9040
167
s = input() ans = [] for i in s: if i == "0": ans.append(0) elif i == "1": ans.append(1) else: if len(ans) != 0: ans.pop(-1) print(*ans,sep="")
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,265
s282137847
p04030
u634046173
1599439648
Python
PyPy3 (7.3.0)
py
Accepted
60
61552
134
S = input() es ='' for s in S: if s == '1' or s == '0': es+=s else: #if es != '': es=es[:-1] print(es)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,266
s341830506
p04030
u634046173
1599439616
Python
PyPy3 (7.3.0)
py
Accepted
67
61824
137
S = input() es ='' for s in S: if s == '1' or s == '0': es+=s else: if es != '': es=es[:-1] print(es)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,267
s795680795
p04030
u708211626
1599426723
Python
Python (3.8.2)
py
Accepted
29
8924
85
s=input() a='' for i in s: if i=='B': a=a[:-1] else: a+=i print(a)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,268
s813414584
p04030
u239091426
1599420982
Python
Python (3.8.2)
py
Accepted
32
9028
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,204,269
s394324171
p04030
u107639613
1599410894
Python
PyPy3 (7.3.0)
py
Accepted
73
61892
265
import sys def input(): return sys.stdin.readline().strip() def main(): s = input() ans = "" for c in s: if c != 'B': ans += c elif ans != "": ans = 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,270
s197985682
p04030
u304612256
1599371384
Python
Python (3.8.2)
py
Accepted
26
8932
181
from sys import stdin input = stdin.readline S = input().strip() P = '' for s in S: if s == 'B': if P != '': P = P[:-1] else: P = P + s print(P)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,271
s783153690
p04030
u018984506
1599366716
Python
Python (3.8.2)
py
Accepted
30
9328
329
from sys import exit import math import collections ii = lambda : int(input()) mi = lambda : map(int,input().split()) li = lambda : list(map(int,input().split())) s = input() ans = '' for i in range(len(s)): if s[i] == 'B': if len(ans) == 0: continue ans = ans[0:-1] else: ans += s[i] 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,272
s929536350
p04030
u230621983
1599364452
Python
Python (3.8.2)
py
Accepted
25
9092
167
s = input() ans = '' for c in s: if c == '0': ans += '0' elif c == '1': ans += '1' elif c == 'B' and 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,273
s014306747
p04030
u705418271
1599363258
Python
Python (3.8.2)
py
Accepted
24
9040
126
s=input() ans='' for c in s: if c=='0': ans+='0' elif c=='1': ans+='1' else: ans=ans[:len(ans)-1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,274
s250202807
p04030
u973069173
1599348056
Python
Python (3.8.2)
py
Accepted
31
9028
204
a = input() test = '' for i in range(len(a)): if a[i] == '0': test += '0' elif a[i] == '1': test += '1' else: if len(a) == 0: pass else: test = test[:-1] print(test)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,275
s230830878
p04030
u510331904
1599347722
Python
Python (3.8.2)
py
Accepted
26
9016
271
#!/usr/bin/env python3 s = input() len_s = len(s) text = '' for i in range(len_s): if s[i] == '0': text += '0' elif s[i] == '1': text += '1' else: if text == '': pass else: text = text[:-1] print(text)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,276
s772469128
p04030
u384793271
1599335217
Python
Python (3.8.2)
py
Accepted
26
9032
160
s = input() ans = '' for c in s: if c == '0': ans += '0' elif c == '1': ans += '1' else: ans = ans[:len(ans) - 1] print(ans)
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,277
s469643111
p04030
u250734103
1599334629
Python
Python (3.8.2)
py
Accepted
30
9020
168
s = input() ans = '' for char in s: if char == '0': ans += '0' if char == '1': ans += '1' if char == '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,278
s626707474
p04030
u282813849
1599322561
Python
Python (3.8.2)
py
Accepted
29
8968
130
S = input() F = [] for ch in S: if ch == "B": if len(F) > 0: F.pop() else: F.append(ch) print("".join(F))
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,279
s839314832
p04030
u014333473
1599251978
Python
Python (3.8.2)
py
Accepted
25
9000
94
n=[] for i in input(): if i=='B': if n: n.pop() else: n.append(i) print(*n,sep='')
p04030
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has <var>3</var> keys on it: the <code>0</code> key, the <code>1</code> key and the backspace key.</p> <p>To begin wi...
01B0
00
1,204,280