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

都差不多嘛,是不是别的地方写坏了?

Posted by frkstyc at 2005-07-08 17:13:35 on Problem 2408
In Reply To:Re:?????我也是这样排序的啊 Posted by:Ikki at 2005-07-08 17:12:24
> 我是这样排序的
> bool cmp(const Type& a,const Type& b)
> {
>    int ans=strcmp(a.sorted,b.sorted);
>    if(ans<0) return true;
>    else if(ans>0) return false;
>    else
>    {
>       int ans1=strcmp(a.original,b.original);
>       if(ans1<0) return true;
>       else return false;
>    }
> }

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