Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
24294 | 老方 | 乘方计算 | C++ | Accepted | 0 MS | 248 KB | 190 | 2023-08-10 12:58:02 |
#include<iostream> using namespace std; int main(){ int n1,n2,sum=1; cin>>n1; cin>>n2; for(int i=0;i<n2;i++){ sum*=n1; } cout<<sum; return 0; }