repl.it
@sclanc20/

4.9. For: Lost card

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#n = int(input())

#cards_sum = 0
#for i in range(1, n + 1):
#  cards_sum += i

#for i in range(n - 1):
# cards_sum -= int(input())

#print(cards_sum)

a = int(input())
b = []

for i in range(a-1):
  c=int(input())
  b.append(c)
for r in range(1,a+1):
  if b.count(r)==0:
    print(r)
    

Fetching token
?