Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class OddNumber
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- long oddNumber = 0;
- for (int i = 1; i <= n; i++)
- {
- long number = long.Parse(Console.ReadLine());
- oddNumber ^= number;
- }
- Console.WriteLine(oddNumber);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment