Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68584 祝家懿 公约数问题 C++ Wrong Answer 1 MS 280 KB 227 2024-03-24 08:36:42

Tests(0/10):


Code:

#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*pow(x,n-1); } int main() { int a,b; cin>>a>>b; a=s(a,b); cout<<a; return 0; }


Run Info:

------Input------
7 7
------Answer-----
7
------Your output-----
823543