思路: 其实就是简单的判断题,如果p > 1就可交换,反之就不交换。
代码实现:
#include<bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int t, n;
int main()
{
cin >> t;
while(t --){
double n; cin >> n;
cout << (n > 1 ? "No" : "Yes") << endl;
}
return 0;
}