Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
8088 | 吴承熹 | 水仙花数II | C++ | Wrong Answer | 0 MS | 268 KB | 508 | 2025-06-14 09:21:25 |
#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 m,n; cin>>m>>n; for(int i=1;i<=m/2;i++){ for(int j=m-i;j<=m;j++){ if(i+j==m&&i*j==n){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }
------Input------
100 200
------Answer-----
153
------Your output-----
No