Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103835 张黄源 x的n次方 C++ Wrong Answer 1 MS 264 KB 240 2024-12-29 15:22:24

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int jc(int bcs,int cs){ int max; for(int i=1;i<=cs;i++){ if(bcs%i==0&&cs%i==0){ max=i; } } return max; } int main() { int a,b; cin>>a>>b; cout<<jc(a,b); return 0; }


Run Info:

------Input------
10 7
------Answer-----
10000000
------Your output-----
1