Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
162796 陈开远 x的n次方 C++ Accepted 1 MS 272 KB 211 2026-10-19 20:37:17

Tests(10/10):


Code:

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