码迷,mamicode.com
首页 >  
搜索关键字:ll    ( 5333个结果
[Bzoj1767][Ceoi2009]harbingers (树上斜率优化)
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 100005; struct node{ int pre, to, val; }edge[MAXN << 1]; int n, h ...
分类:其他好文   时间:2020-12-16 11:41:51    阅读次数:3
2020团体程序设计天梯赛 补题
L2-1 简单计算器 (25分) 这个题会用栈就能做出来了。按题目要求写就行,比赛没做全对。 #include<bits/stdc++.h>#define ll long longusing namespace std;int main(){ stack<int>s1; stack<char>s2; ...
分类:其他好文   时间:2020-12-11 11:38:53    阅读次数:2
CF884E Binary Matrix(并查集)
初一看,sb题,上去一个并查集,很快啊,返回一个MLE,定睛一看,系统开的内存很小,但是这个算法复杂度又是这么正确 因此考虑优化内存,这样用滚动数组优化即可 #include<bits/stdc++.h> using namespace std; typedef long long ll; type ...
分类:其他好文   时间:2020-12-10 11:39:56    阅读次数:13
Linux新增硬盘,扫描总线,识别硬盘
开机,新增加硬盘后,系统内并不会查看到新增硬盘,在不重启的情况下,就需要出发内核重新扫描总线来识别新增硬盘了 VMware新添加一块5G硬盘 查看现有硬盘挂载的适配器 ll /sys/block/sda 可以根据连接路径查看sda硬盘的相关信息 ll /sys/devices/pci0000:00/ ...
分类:系统相关   时间:2020-12-10 11:26:08    阅读次数:12
树状数组
树状数组 lowbit : 求最低位的 $1$ 以及后面的 $0$ 所组成的十进制数 #include<iostream> #include<cstdio> #include<cstring> #include<math.h> #include<algorithm> #define ll long ...
分类:编程语言   时间:2020-12-09 12:01:36    阅读次数:14
CF1456E XOR-ranges
定义$p(x)\(表示\)\sum_^ bit(x,i)c_i$。一个序列的贡献定义为$\sum p(a_i\ xor \ a_{i+1})$。 给出$[l_i,r_i]$,构造一个序列满足$a_i\in [l_i,r_i]$,求最大贡献。 \(n,k\le 50\) %%%ll倒序开题爆切E。 为 ...
分类:其他好文   时间:2020-12-08 12:44:35    阅读次数:4
基环树
基环树 基环树直径 P3248 #include<bits/stdc++.h> using namespace std; #define ll long long const int N=1e5+5; int n; int te,v[N<<1],pre[N<<1],tail[N]; ll L,len ...
分类:其他好文   时间:2020-12-01 12:29:19    阅读次数:7
linux常用操作,实用
列出的都是我工作中用上的,不足之处请在评论区补充,本文持续更新,分享才能进步加油! jps -l :查看所有的进程和 pid tail -100f :动态查看后100行 cat:查看所有 kill -9 pid :杀死进程 ll:纵表展示目录 history / history 100 :展示历史命 ...
分类:系统相关   时间:2020-11-27 11:17:51    阅读次数:14
P5163 WD与地图
###链接 贴一下青君大佬的博客~ #include<bits/stdc++.h> #define IL inline #define LL long long #define pb push_back #define pi pair<int,int> #define mk make_pair us ...
分类:其他好文   时间:2020-11-27 11:15:36    阅读次数:6
Codeforces 1439B. Graph Subset Problem (思维,复杂度分析)
#include<bits/stdc++.h> #define ll long long #define N 100015 #define rep(i,a,n) for (int i=a;i<=n;i++) #define per(i,a,n) for (int i=n;i>=a;i--) #def ...
分类:其他好文   时间:2020-11-25 12:45:31    阅读次数:4
5333条   上一页 1 ... 6 7 8 9 10 ... 534 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!