This commit is contained in:
HuangHai
2025-08-30 18:35:01 +08:00
commit 1f397eca87
6258 changed files with 1487241 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#include <bits/stdc++.h>
using namespace std;
//分解质因数
const int N = 110;
int a[N];
int divide(int x) {
int cnt = 0;
for (int i = 2; i <= x / i; i++)
while (x % i == 0) {
a[++cnt] = i;
x /= i;
}
if (x > 1)a[++cnt] = x;
return cnt;
}
int main() {
int cnt = divide(8);
for (int i = 1; i <= cnt; i++) {
if (i > 1) printf("*");
cout << a[i];
}
return 0;
}