杭电acm 2095 find your present (2)

杭电acm 2095 find your present (2) - ●n⒈y`·。 - ︶ㄣ晚上望太阳ㄜ︵

#include<iostream>
using namespace
 std;
int
 main()
{

    int
 n,x,y;
    while
(cin>>n,n)
    {

         cin>>x;          
         while
(--n)
         {

             cin>>y;
             x=x^y;
         }

         cout<<x<<"\n";
    }

    return
 0;
}

posted @ 2014-07-20 15:46  PastLIFE  阅读(231)  评论(0)    收藏  举报