| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 14258 | chibubao | 求两个数的公约数 | C++ | Accepted | 0 MS | 236 KB | 172 | 2023-04-12 03:09:05 |
#include<iostream> using namespace std; int main() { int a,b,i,cnt=0; cin>>a>>b; for(i=1;i<=a;i++) if(a%i==0&&b%i==0) cout<<i<<" ",cnt++; cout<<"\n"<<cnt; }