Bernard5
Bernard5
全部文章
分类
作业(2)
学习笔记(17)
技术教程(45)
期末应试(48)
未归档(17)
赛后分析(7)
题解(132)
题集(15)
归档
标签
去牛客网
登录
/
注册
some model useful
我亦是行人
TA的专栏
172篇文章
0人订阅
算法竞赛之路
172篇文章
3608人学习
全部文章
(共281篇)
坑贪心 二进制枚举 CCPC长春A
来自专栏
#include <bits stdc++.h> using namespace std; int v[10] = {1, 6, 28, 88, 198, 328, 648}, e[10] = {8, 18, 28, 58, 128, 198, 388}; int main() ...
2021-05-19
0
598
Linux 对拍脚本
#!/bin/bash g++ std.cpp -o std -Wall g++ my.cpp -o my -Wall while true; do clear python3 creat.py ./std #&...
ubuntu
语法
板子
ICPC
2021-05-10
0
215
git
benrard@aqua:~$ cd kubuntu_backup/ benrard@aqua:~/kubuntu_backup$ git init benrard@aqua:~/kubuntu_backup$ git config --global user.email "bernard...
2021-05-10
0
507
kubuntu backup
res="" while (( $res=="" )) do clear #python3 -m creat.py #g++ std.cpp -o std && std #g++ my.cpp -o my &am...
2021-05-10
0
579
Codeforces Global Round 14
来自专栏
A 如果会达到爆炸态,向后交换以推迟即可。 #include <bits/stdc++.h> #define sc(x) scanf("%lld", &(x)) #define pr(x) printf("%lld ", (x)) #def...
2021-05-03
0
769
线性基 Linear Base
来自专栏
性质 线性基的元素能通过相互异或,得到原序列的元素的所有相互异或得到的值。也可以得到原序列的任意一个数。 线性基是满足性质1的最小集合。 线性基没有异或和为 0 的子集。 线性基中每个元素的异或方案唯一,也就是说,线性基中不同的异或组合异或出的数都是不一样的。 线性基中每个元素的二进制最高位互不相...
线性基
数据结构
位运算
2021-05-01
0
761
几种最短路的简单表述
来自专栏
SPFA 思路: 初始化dis[]为最大值,dis[x]表示起点到x点的最短路长度 建立一个queue,一开始只有起点 弹出队头,对于队头节点的每个相邻点,如果能优化当前的路径,就入队,并且优化 重复3直到队空 #include <bits/stdc++.h> #define sc(...
最短路
图论
数据结构
2021-04-23
0
687
这是二叉搜索树吗?
来自专栏
#include <bits/stdc++.h> #define sc(x) scanf("%lld", &(x)) #define pr(x) printf("%lld\n", (x)) #define rep(i, l, r) for (int i = l; i <= ...
数据结构
模拟
2021-04-21
0
548
第十二届蓝桥杯大赛软件赛省赛 C/C++ 大学 B 组
试题 A: 空间 1 byte=8 bit1\ byte = 8\ bit1 byte=8 bit >>> 256*1024*1024*8//32 67108864 试题 B: 卡片 #include <bits/stdc++.h...
2021-04-18
2
880
区间DP
来自专栏
题意 给n个数。定义。你可以随意排列这n个数,求的可能的最小值。 solution 比较有意思的区间DP:表示从到的最小。排序后,每次向左或向右拓展一位,都会更新最小值/最大值 #include <bits/stdc++.h> using namespace std; typedef l...
区间DP
2021-04-17
0
564
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页