| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:青蛙约会这个题目难点在那阿,为什么老waIn Reply To:青蛙约会这个题目难点在那阿,为什么老wa Posted by:first at 2003-12-12 22:45:39 > int k=0;
> while((k*(x-y)+m-n)%L!=0&&k<L)
> {
> k++;
> }
> if(k<L)
> cout<<k<<endl;
>
> else
> cout<<"Impossible\n";
> 这杨应该没问题的阿
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator