| ||||||||||
| 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 | |||||||||
为什么date=long long (k*sqrt(1+(sqrt(5.0)/2.0)));会编译错误#include<stdio.h>
#include<math.h>
int main()
{
long long a,b,m,date;
double k;
while(scanf("%lld%lld",&a,&b)!=EOF)
{
if(a>b)
{
m=a;
a=b;
b=m;
}
k=b-a;
date=long long (k*sqrt(1+(sqrt(5.0)/2.0)));
if (date==a)
printf("0\n");
else
printf("1\n");
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator