提交时间:2023-08-22 09:33:40
运行 ID: 99131
#include <bits/stdc++.h> using namespace std; signed main() { int n; cin >> n; for(int i = 2; i <= n; i++) { while(!(n%i)) { if(n!=i)cout << i << "*"; else cout << i, exit(0); n/=i; } } return 0; }