标签:des style blog color java os io strong div
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 3669 Accepted Submission(s): 1839
1 #include<iostream> 2 #include<string> 3 #include<cstdio> 4 #include<vector> 5 #include<queue> 6 #include<stack> 7 #include<set> 8 #include<algorithm> 9 #include<cstring> 10 #include<stdlib.h> 11 #include<math.h> 12 #include<map> 13 using namespace std; 14 #define ll long long 15 int main(){ 16 int n,m; 17 while(cin>>n>>m){ 18 if(n>m) swap(n,m); 19 int k=m-n; 20 if(int(k*1.0*(1+sqrt(5))/2)==n&&m==n+k){ 21 cout<<0<<endl; 22 continue; 23 } 24 cout<<1<<endl; 25 } 26 }
标签:des style blog color java os io strong div
原文地址:http://www.cnblogs.com/ainixu1314/p/3931914.html