| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128758 | 常钰杰 | x的n次方 | C++ | Wrong Answer | 1 MS | 276 KB | 277 | 2025-08-19 14:51:01 |
#include<bits/stdc++.h> using namespace std; int xd(int x, int n) { if(n == 1) { return x; } else { return xd(x, n - 1) * x; } } int main() { int x, n; cin >> x >> n; cout << xd(x, n); return 0; }
------Input------
-2 49
------Answer-----
-562949953421312
------Your output-----
0