-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabc244_c.py
More file actions
37 lines (35 loc) · 1.05 KB
/
abc244_c.py
File metadata and controls
37 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
###############################################
###############################################
###############################################
###############################################
###############################################
###############################################
###############################################
[tm]
N = int(input())
s = set(range(1, 2*N+1+1))
while True:
print('\t',s.pop())
a = int(input())
if a==0:
exit()
s.discard(a)
###############################################
[AC]
n=int(input())
P=set(range(1,2*n+2))
while len(P)>0:
m=max(P)
P.discard(m)
print(m)
a=int(input())
P.discard(a
###############################################
###############################################
###############################################
###############################################
###############################################
###############################################
###############################################
###############################################
###############################################