Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68279 殷震博 x的n次方 C++ Wrong Answer 1 MS 268 KB 209 2024-03-22 19:07:49

Tests(0/10):


Code:

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


Run Info:

------Input------
10 7
------Answer-----
10000000
------Your output-----
1