Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
437333 方相宜 【C2-2】乘方计算 C++ 通过 100 1 MS 244 KB 237 2026-04-22 19:50:02

Tests(2/2):


#include <iostream> using namespace std; int main() { int a, n; cin >> a >> n; int result = 1; for (int i = 0; i < n; ++i) { result *= a; } cout << result << endl; return 0; }


测评信息: