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:我的代码怎么了?

Posted by Rainer at 2007-01-04 22:57:42
In Reply To:我的代码怎么了? Posted by:044a152029 at 2007-01-04 21:05:07
> #include<stdio.h>
> void main()
> {
> 	int x,y,m,n,l,i;
> 	int f,b;
> 	i=1;
> 	scanf("%d %d %d %d %d %d",&x,&y,&m,&n,&l);
                ~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~
> 	f=n-m;
> 	b=y-x;
> 	while(((f*i+b)%l)!=0)
> 	i++;
> 	printf("%d\n",i);
> }

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