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 T3 at 2005-07-28 12:32:18 on Problem 1006
In Reply To:实在没办法了:help Posted by:ACM05001_dz0302 at 2005-07-28 12:28:55
> #include"stdio.h"
>  void main()
>  { int a,b,c,d,i,j=0,n;
>  while(1){scanf("%d%d%d%d",&a,&b,&c,&d);j++;
>  if(a==-1&&b==-1&&c==-1&&d==-1) break;
>  for(i=0;i<644;i++){if(((i*33-c%33+b%28)%28==0)&&((i*33-c%33+a%23)%
~~~~~~~~~~~~~~~~~~~~~~这个判断是什么意思?
23==0))break;}
> n=21252-(33*i-c%33+d);
> printf("Case %d: the next triple peak occurs in %d days.\n",j,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