Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
109473 λɐſ̣ 快速幂运算 C++ 通过 100 0 MS 248 KB 201 2023-11-09 13:02:39

Tests(10/10):


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


测评信息: