Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
109812 Fess 快速幂运算 C++ 通过 100 0 MS 248 KB 242 2023-11-11 10:57:32

Tests(10/10):


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


测评信息: