100unaccept求调
查看原帖
100unaccept求调
994285
piiritys楼主2024/4/8 00:48

rt

https://www.luogu.com.cn/record/154843350

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    if(a==b)
    {
        cout<<1<<endl;
        return 0;
    }
    double delta=(sqrt(5.0)+1)/2;
    if(a>b) swap(a,b);
    int d=b-a;
    int c=(int)(delta*d);
    if(a==c) cout<<0<<endl;
    else cout<<1<<endl;
    return 0;
}
2024/4/8 00:48
加载中...