acccccccccccccccccc不过我吃

riki  •  4天前


include <bits/stdc++.h>

using namespace std;

int t[10000] = {0};

void oe(int x) {

int i = 2, max = x;
while (x > 1) {
	while (x % i == 0) {
		max = i;
		x /= i;
	}
	i++;
}
cout << max << " ";

}

int main() {

int a, b;
cin >> a >> b;

for (int j = a; j <= b; j++) {
	int x = j;
	oe(x);
}
return 0;

}


评论:

请先登录,才能进行评论