作者解法
查看原帖
作者解法
1595037
A350xwbofAirChina楼主2024/12/15 13:25

用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)"

2024/12/15 13:25
加载中...