题解 | 构造A+B
构造A+B
https://www.nowcoder.com/practice/953806d9f41a4d5fbbab002ed61923ff
#include <iostream> using namespace std; //对于任意一个n,都有x从1到n-1,y从n-1到1的过程,即为最多n-1 int main() { int n,k;cin>>n>>k; if(n-1>=k)cout<<"YES"; else cout<<"NO"; } // 64 位输出请用 printf("%lld")