Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158393 张蔚林 x的n次方 C++ Accepted 3 MS 272 KB 194 2026-08-21 14:04:41

Tests(10/10):


Code:

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