Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335821 李俞家骅 【C2-5】乘方计算 C++ 通过 100 2 MS 244 KB 157 2025-07-24 10:00:16

Tests(2/2):


#include<bits/stdc++.h> using namespace std; int main(){ int n,a,x=1; cin>>a>>n; for(int i=1;i<=n;i++){ x=x*a; } cout<<x<<endl; return 0; }


测评信息: