| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157842 | 孔声豪 | 最大公约数(函数) | C++ | Wrong Answer | 1 MS | 272 KB | 212 | 2026-08-18 14:26:36 |
#include<bits/stdc++.h> using namespace std; int ys(int x,int y){ int j; while(x%y!=0){ j=x%y; x=y; y=j; } return x; } int main(){ int n,m; cin>>n>>m; cout<<ys(n,m)/2; return 0; }
------Input------
25 70
------Answer-----
5
------Your output-----
10