Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
354010 | 胡珂 | 【C2-2】乘方计算 | C++ | Accepted | 100 | 1 MS | 248 KB | 167 | 2025-10-01 13:16:53 |
#include<iostream> using namespace std; int main(){ int n,a,sum=1; cin>>a>>n; for(int i=1;i<=n;i++){ sum*=a; } cout<<sum; return 0; }