Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
无语!!0ms瞬过!!!附代码!!#include<stdio.h> int main() { long long n,m,a,s,d[55]; while(~scanf("%lld",&n)) { for(m=1;m<=n;m++) scanf("%lld",&d[m]); int i; int s=d[1]; for(i=2;i<=n;i++) s^=d[i]; if(s!=0) printf("Yes\n"); else printf("No\n"); } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator