Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
103779 | 杜奕辰 | x的n次方 | C++ | Wrong Answer | 1 MS | 272 KB | 231 | 2024-12-29 15:14:30 |
#include<bits/stdc++.h> using namespace std; long long cf(long long x,long long y){ if(x==0||y==0){ return 1; } return x*cf(x,y-1); } int main() { long long n,m; cin>>n>>m; cout<<cf(n,m); return 0; }
------Input------
0 10
------Answer-----
0
------Your output-----
1