Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
20831 LeoWang 乘方计算 C++ Accepted 0 MS 240 KB 151 2023-06-21 06:47:42

Tests(1/1):


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


Judgement Protocol: