用pow解 没难度
#include<bits/stdc++.h> using namespace std; int main() { int n,x,z; cin>>n>>x; z=pow(x,n); if(z>=10) cout<<"YE5"; else cout<<"N0"; return 0; }
注意:
pow函数要用头文件cmath
严禁抄题解
YE5="Y"+"E"+"五(5)"
N0="N"+"零(0)"