Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137568 Kevin 求x的n次方 C++ Accepted 1 MS 268 KB 166 2025-11-19 19:51:23

Tests(2/2):


Code:

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