Ball search (3)

Source: Internet
Author: User
Ball search (3) Time Limit: 2000 MS | memory limit: 3000 kb difficulty: 2
Description

Xiaod is now responsible for tennis management at a certain Stadium. To facilitate management, he coded every ball and the total number of balls for each number was an even number. One day, xiaod found that one ball was missing. Could you help him find the lost ball number?

Input
There are multiple groups of test data. Each group of data includes two rows.
The first row is an integer N (0 <n <1000000), indicating the number of remaining balls.
The next row contains N numbers, indicating the number M (0 <m <10 ^ 9) of the remaining balls ).
Output
For each set of data, output the ball number of the lost ball.
Sample Input
51 1 3 6 631 2 1
Sample output
32




Ball search (3)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.