#include<iostream>
#include<vector>
using namespace std;
int main()
{
int P, Q;
cin >> P >> Q;
vector<int>q;
for (int i = 1; i<= Q; i++)
{
if (Q%i == 0)
q.push_back(i);
}
for (int i = 1; i<= P; i++)
{
if (P%i == 0)
{
for (vector<int>::iterator it = q.begin(); it != q.end(); it++)
cout << i << " " << *it << endl;
}
}
//system("pause");
return 0;
}
hiho一下 第八十八周
最新推荐文章于 2024-09-05 16:20:01 发布