Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:无语!!0ms瞬过!!!附代码!!

Posted by AFKWOW at 2012-10-28 17:19:29 on Problem 2234
In Reply To:无语!!0ms瞬过!!!附代码!! Posted by:wocha at 2012-04-20 20:18:48
> #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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator