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

Tests(2/2):


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


测评信息: