26年数学中考https://www.luogu.me/article/l6p143zf
左神
比赛
OI机构老板模拟器
大饱眼福
我的儿子可能是个GAY
我能在..
MC
OI教练模拟器
挺好
不知道
综合能力提升题单
妞儿壁纸
cout << fixed << setprecision() << 数字
01bag: dp[i][j]=max(dp[i-1][j],dp[i-1][j-w[i]]+v[i])
完全bag: dp[i][j]=max(dp[i-1][j],dp[i][j-w[i]]+v[i])
DP
set函数的用法
记忆化搜索
背包DP转移方程
扩展欧几里得
彳亍(安平志臻大团队)
基本数论
背包DP状态转移方程
动态规划bilbil
背包
动态规划
归并排序
vector
队列
从朴素到线段树
豆包
百度
bilbil学习网站(只搜关于学习的视频)
洛谷
一本通
启蒙
东方博宜
acwing
oiwiki
云斗学院
CSP-J初赛知识点
CSP-S初赛知识点
十大排序
NOI报名官网
set用法
这个是真有用
单调栈
__int128_t
#include<bits/stdc++.h>
#define int long long
using namespace std;
__int128_t read()
{
__int128_t x = 0;
bool f = 0;
char c = getchar();
while(c < '0'|| c > '9')
{
if(c == '-')
{
f = 1;
}
c = getchar();
}
while(c >= '0' && c <= '9')
{
x = (x << 1) + (x << 3) + (c ^ 48);
c = getchar();
}
return f?-x:x;
}
inline void out(__int128_t x)
{
if(x < 0) putchar('-'),x = -x;
if(x > 9) out(x / 10);
putchar(x % 10 + '0');
}
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
return 0;
}
搜索初始代码
int search(int t)
{
if(满足输出条件)
{
输出解;
}
else
{
for(int i=1;i<=尝试方法数;i++)
if(满足进一步搜索条件)
{
为进一步搜索所需要的状态打上标记;
search(t+1);
恢复到打标记前的状态;//也就是说的{回溯一步}
}
}
}
初始代码
#include<bits/stdc++.h>
#define int long long
using namespace std;
inline int read()
{
int x = 0;
char f = 1,ch = getchar();
while(ch < '0' || ch > '9')
{
if(ch == '-') f = -1;
ch = getchar();
}
while(ch >= '0' && ch <= '9') x = x * 10 + ch - '0',ch = getchar();
return x * f;
}
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
return 0;
}深搜分支模板
#include<bits/stdc++.h>
using namespace std;
int m,arr[103];
int n;
void dfs(int n,int i,int a)
{
if(n == 0)
{
for(int j = 1;j <= i - 1; ++ j)
{
cout << arr[j];
}
cout << endl;
}
if(i <= m)
{
for(int j = a;j <= n; ++ j)
{
arr[i] = j;
dfs(n - j,i + 1,j);
}
}
}
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
cin >> n >> m;
dfs(n,1,1);
return 0;
}快读模版
int read()
{
int x=0;
char f=1,ch=getchar();
while(ch<'0'||ch>'9')
{
if(ch=='-') f=-1;
ch=getchar();
}
while(ch>='0'&&ch<='9') x=x*10+ch-'0',ch=getchar();
return x*f;
}01背包DP
定义 dp「重量」//对于本题来说是重量
循环「元素个数」次
{
输入「第i个物品的重量」、「第i个物品的价值」
从「背包最大承重」往少遍历到「第i个物品的重量」
{
状态转移方程
//对于求价值是dp[j] = dp[j]和dp[j - 「重量」] + 「价值」;
}
}
费马小定理:若为p素数,gcd(a,p) = 1,则 a的p-1次方与1同模于p (a的p-1次方 % p == 1 % p)
另一种形式:对于任意整数a,有a的p次方与a同模于p (a的p次方 % p == a % p)
数据测试:
mt19937 Rand(time(0));
freopen(“data.in”,“w”,stdout);
cout << Rand() % 1000(数据范围);
暴力:
freopen(“data.in”,“r”,stdin);
freopen(“force.out”,“w”,stdout);
程序
你的正解:
程序
新建文本文档
: loop
data.exe
std.exe
force.exe
fc std.out force.out
if errorlevel==1 pause
goto loop
改为xxx.bat
人生目标
小目标:
1.等级分到达500(完成)
2.橙题过100(完成)
3.黄题过50(完成)
4.到达橙名(170估值)
5.写一篇题解(完成)
6.学会并掌握所有入门的算法(高精度,模拟,排序,搜索,贪心,递归与递推,二分,暴力枚举)
7.学会并掌握所有入门的数据结构(线性表,二叉树,集合,图)
8.CSP-J(CSP-S)可以过初赛并且拿二等奖及以上(完成)
9.GESP四级及以上
中目标:
1.等级分到达1000
2.学会并掌握较难的算法与数据结构等
3.到达红名
4.题解过3
5.绿题、蓝题、紫题过50
{
绿:
蓝:
紫:
}
6.NOIP可以过初赛并且拿二等奖及以上
7.GESP八级
大目标:
1.等级分到达2000
2.黑题过50
3.学会并掌握所有的算法与数据结构等
目前执行:小目标
