• 1
    Input and Output Data
    • Tasks
  • 2
    Conditions
    • Tasks
  • 3
    For Loop
    • Tasks
  • 4
    Strings
    • Tasks
  • 5
    While Loop
    • Tasks
  • 6
    Lists
    • Tasks
  • 7
    Two-Dimensional Arrays
    • Tasks
  • 8
    Dictionaries
    • Tasks
  • 9
    Sets
    • Tasks
  • 10
    Functions and Recursion
    • Tasks
  • к

Занятие 9. Sets

Difficulty level:

Task«The missing element»

The lottery organizers held two draws. All tickets participated in the first draw, and in the second & ndash; Only part of the tickets selected randomly. Unfortunately, one ticket was lost when transmitting data on the second draw.
rn
You are given two lists of integers. The first list is the numbers of tickets participating in the first draw, and the second list is the ticket numbers that participated in the second draw (with one lost number). Your task is to find the number of the lost ticket.
rn
note that there may be repeated numbers in the lists Tickets.

Input format

two lines, each of which contains a sequence of integers separated by spaces. The first line is the number of tickets of the first draw, the second - the number of tickets of the second draw

Output format

one number-the number of the lost ticket

Example

Input

1 2 2 3
1 2 3

Output

Hint

There will be no clue here, decide for yourself!

main.py
Test 1
Test 2
Test 3
Test 4
Test 5
Test 6
Test 7
Test 8
Test 9
Test 10
Developer’s solution

🎉 Congratulations! 🎉

You did an excellent job with the task! It was a challenging problem, but you found the correct solution. You are one step closer to mastering programming! Keep up the good work, because every stage you pass makes you even stronger.

AD

Advertisement

red-snake blue-snake green-snake

Running your code...

Помощник ИИ

Привет! Я твой помощник по программированию. Задавай любые вопросы по Python, я могу рассказать о функциях, методах, обьяснить то, что тебе не понятно, а так же о текущей задаче!