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

您的程序是不是写错了,我的程序按您那么写是可以AC的......

Posted by TN at 2005-05-03 12:22:48 on Problem 2426
In Reply To:这样是可以AC的...... Posted by:TN at 2005-05-03 12:21:49
int main()
{
    sign[1]='+';sign[2]='-';sign[3]='*';sign[4]='%';
    while (1)
    {
        scanf("%d %d %d",&n,&k,&m);
        if (n==0 && m==0 && k==0) return 0;
        if (gcd(k,gcd(n,m))!=1) printf("0\n");else
        bfs(mod(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