标签:arch archive log 方法 title img else blog isp
http://poj.org/problem?id=1067
Input
Output
1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 #include<cmath> 5 #include<iostream> 6 #include<map> 7 using namespace std; 8 int a,b; 9 int main(){ 10 while(~scanf("%d%d",&a,&b)){ 11 if(a<b){//神奇的换位方法 12 a^=b;b^=a;a^=b; 13 } 14 int k=a-b; 15 a=(int)((double)k*(1+sqrt(5.0))/2); 16 if(a==b){ 17 printf("%d\n",0); 18 } 19 else{ 20 printf("%d\n",1); 21 } 22 } 23 return 0; 24 }
标签:arch archive log 方法 title img else blog isp
原文地址:http://www.cnblogs.com/137shoebills/p/7944629.html