标签:des style blog http io ar color os sp
9 15 5 4 1 -56 0 0
No Yes Yes
#include<stdio.h> int main() { int i,k; double n,m; while(scanf("%lf%lf",&n,&m)&&(n+m)) { k=0; for(i=-9999;i<=9999;i++) { if(i*(n-i)==m) { k=1; break; } } if(k==1) printf("Yes\n"); else printf("No\n"); } return 0; }
标签:des style blog http io ar color os sp
原文地址:http://blog.csdn.net/hdd871532887/article/details/41460805