1 #include<stdio.h>
 2 #include<math.h>
 3 int main()
 4 {
 5     int t,n,m,x;
 6     while (~scanf("%d%d",&n,&m))
 7     {
 8         if (n>m) {t=m; m=n; n=t; }
 9         t=m-n;
10         x=t*(1+sqrt(5.0))/2;
11         if (x==n) printf("0\n");
12         else printf("1\n");
13     }
14 } 

相关文章:

  • 2021-07-01
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2021-07-05
  • 2023-02-16
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-04-04
相关资源
相似解决方案