| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 75532 | sh25_shenpy | 求两个数的公约数 | C++ | Accepted | 0 MS | 248 KB | 273 | 2025-12-07 16:32:26 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,w,s=0; cin>>a>>b; w=__gcd(a,b); for(int i=1;i<=w;++i){ if(w%i==0){ s++; cout<<i<<" "; } } cout<<endl; cout<<s; return 0; }