提交时间:2023-08-22 09:39:57

运行 ID: 99137

#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; cout << n << "="; for (int i = 2; i <= n; i++) { while (n % i == 0) { cout << i; n /= i; if (i <= n) cout << "*"; } } return 0; }