Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118006 付博苏逸 求x的n次方 C++ Accepted 1 MS 280 KB 203 2025-04-21 20:53:56

Tests(2/2):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ double x; int n; cin>>x>>n; double c = pow(x,n); if(c==floor(c)){ cout<<c; }else{ cout<<c<<endl; } return 0; }