Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103773 彭林江 x的n次方 C++ Wrong Answer 1 MS 272 KB 261 2024-12-29 15:13:45

Tests(8/10):


Code:

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


Run Info:

------Input------
0 0
------Answer-----
1
------Your output-----
0