hiho week 44 register

Ended

Participants:930

Verdict:Accepted
Score:100 / 100
Submitted:2015-05-03 16:15:38

Lang:G++

Edit
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
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
typedef long long Int64;
typedef unsigned long long UInt64;
#define INT64MAX 9223372036854775807
#define INT32MAX 2147483647
inline int ReadNum()
{
    int x = 0; char ch = getchar(); bool positive = true;
    for (; !isdigit(ch); ch = getchar())    if (ch == '-')  positive = false;
    for (; isdigit(ch); ch = getchar()) x = x * 10 + ch - '0';
    return positive ? x : -x;
}
int main()
{
    int N = ReadNum();
    int ans = 0;
    for (int i = 0; i < N; i++)
    {
        int c = ReadNum();
        ans ^= c;
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX