mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
10 lines
190 B
C++
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");
|
||
|
}
|
||
|
}
|