OJ-Problems-Source/HDOJ/2092_autoAC.cpp
2016-08-19 16:52:35 +08:00

10 lines
190 B
C++

#include <stdio.h>
#include <math.h>
int main(){
int n,m;
while(scanf("%d%d",&n,&m),n,m){
double x=sqrt(n*n-4*m);
printf((int) x==x?"Yes\n":"No\n");
}
}