Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
84358 张黄源 求x的n次方 C++ Accepted 0 MS 272 KB 158 2024-07-15 16:43:36

Tests(2/2):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n,x,sm=1; cin>>x>>n; for(int i=1;i<=n;i++){ sm=sm*x; } cout<<sm; return 0; }