CE

【信条】  •  2天前


include<bits/stdc++.h>

using namespace std; void _ys(int x){

cout << x <<"=";
for (int b = 2; b <= x; b++){
	while(x%b==0){
		if(x==b){
			cout << b;
		}else{
			cout << b << "*";
		}x/=b;
	}
}
cout << endl;

} int main() {

int a, b, k;
cin >> a >> b;
for (int i = a; i <= b; i++){
    _ys(i);	
}
return 0;

}


评论:

请先登录,才能进行评论