| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128759 | 常钰杰 | x的n次方 | C++ | Runtime Error | 44 MS | 65792 KB | 283 | 2025-08-19 14:52:40 |
#include<bits/stdc++.h> using namespace std; long long 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; }
Runtime Error:Segmentation fault