| ||||||||||
| 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 | |||||||||
我都提交了好几遍了,可就是不知道那里错了,帮帮忙老是WR# include <iostream>
# define N 1.6803
# define n 0.6803
using namespace std;
int main(){
int a,b,i,max,min;
while(cin>>a&&cin>>b){
if(a<=0||b<=0)break;
if(a>b){
max=a;
min=b;
}
else {
max=b;
min=a;
}
i=(int)(n*min);
if(min!=(int)(N*i))
i++;
if(max==min+i)cout<<0<<endl;
else cout<<1<<endl;
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator