Run ID:119486

提交时间:2025-05-17 16:48:48

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,m; cin>>n>>m; bool flag=1; for(int i=1;i<=n;i++) { for(int j=1;j<=m;j++) { if(i+j==n&&i*j==m) { flag=1; } else { flag=0; } } } if(flag==1) { cout<<"Yes"; } else { cout<<"No"; } return 0; }