题目 解题核心:
分解质因数,每个质因数的次方1的累乘积就是anscode
#include <iostream>
#include<algorithm>
#include<unordered_map>
//# #include<>
typedef long long LL;
const int N 110, MOD 1e9 7;using namespac…
1.为什么要动态内存分配? int val 20;
int a[10]{0};上面我们声明并定义了一个大小为4字节的整型变量,一个容量为10*4字节的整型数组。 开辟方式:我们在栈上开辟。 开辟空间的方式有两个特点: 1. 空间开辟 大小是固定 的。 2. 数组在申明…