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

知道了。。忘了写Break...

Posted by winsweet at 2008-08-28 21:14:20 on Problem 2535
In Reply To:没有啊。。附程序。。 Posted by:winsweet at 2008-08-28 20:57:02
> 	pp=false;
> 	for (i=0;i<p;i++) if (num[i]>n/2&&!hard[i]) {pp=true;printf("%d",i+1);}
> 	for (;i<p;i++) if (num[i]>n/2&&!hard[i]) printf(" %d",i+1);
> 	if (!pp) printf("0");
> 	printf("\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