Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137496 张智博 x的n次方 C++ Accepted 1 MS 276 KB 301 2025-11-17 22:14:48

Tests(10/10):


Code:

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