| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68583 | 祝家懿 | x的n次方 | C++ | Wrong Answer | 1 MS | 272 KB | 218 | 2024-03-24 08:35:39 |
#include<bits/stdc++.h> using namespace std; int s(int x,int n){ if(n==0){ return 1; } if(1==n){ return x; } return x*x; } int main() { int a,b; cin>>a>>b; a=s(a,b); cout<<a; return 0; }
------Input------
10 7
------Answer-----
10000000
------Your output-----
100