- 博客(2)
- 收藏
- 关注
原创 蓝桥杯中常用的algorithm库函数
1. sort(a,a+n) 快排 2. next_permutation(a,a+n) 全排列 3._gcd(i,j) 求i与j的最大公因数
2024-03-19 20:38:34
100
1
原创 读取所有行的所有数存入一个一维数组中
代码来源:acwing #include <cstring> #include <sstream>//stringstream需要的头文件 #include <iostream> using namespace std; const int N = 10010; int n; //所有数的数目 int a[N]; int main() { int cnt; //行数 cin >> cnt; string line
2024-03-10 18:18:28
376
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人