Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
11398 | jiabokai | 乘方计算 | C++ | Accepted | 0 MS | 248 KB | 158 | 2023-03-10 19:41:48 |
#include <bits/stdc++.h> using namespace std; int main(){ long long a,n; long long s=1; cin>>a>>n; for(int i=1;i<=n;i++){ s*=a; } cout<<s; }