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

谁是高手,帮帮我吧,HELP

Posted by IC0590505119 at 2005-12-11 14:04:09 on Problem 1061
#include<stdio.h>
#include<math.h>
void main()
{
	int m,n,x,y,t,L;
	scanf("%ld %ld %ld %ld %ld",&m,&n,&x,&y,&L);
	if(x!=y&&x<2000000000&&y<20000000000&&m<2000000000&&n<2000000000&&L<2100000000&&(abs(x-y)+L)%abs(m-n)==0)
	{t=( abs(x-y)+L)/abs(m-n);
	printf("%ld\n",t);}
	else printf("impossible\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