Y/N 题解:
P1095
发布于2026年1月28日 19:58
阅读数 4
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
while(cin >> a >> b >> c >> d){
if((2*b < a*a)||(2*c != a*(3*b - a*a))||(2*(b*b - d) != (a*a - b)*(a*a - b)))
cout << "N" << endl;
else
cout << "Y" << endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发