Problem : 2095 ( find your present (2) )     Judge Status : Accepted
RunId : 6068462    Language : G++    Author : qq1203456195
Code Render Status : Rendered By HDOJ G++ Code Render Version 0.01 Beta

 1 #include <stdio.h>
 2 int main()
 3 {
 4     int n,r,t;
 5     while (scanf("%d",&n),n)
 6     {
 7         r=0;
 8         while (n--)
 9         {
10             scanf("%d",&t);
11             r^=t;
12         }
13         printf("%d\n",r);
14     }
15     return 0;
16 }

相关文章:

  • 2021-06-29
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2021-08-07
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-05-05
  • 2022-01-09
相关资源
相似解决方案