码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
HDU - 1166 敌兵布阵
题目链接 维护一个单点修改,区间查询的数据结构,树状数组和线段树均可以。 我写了树状数组。 #include<bits/stdc++.h> using namespace std; #define lowbit(x) (x & (-x)) char s[10]; int n; long long c ...
分类:其他好文   时间:2020-07-29 21:56:16    阅读次数:86
HDU - 1754 I Hate It
题目链接 线段树,单点修改,区间最大值查询。 #include<bits/stdc++.h> using namespace std; const int N = 2e5 + 10; int n,m; #define mid ((l + r) >> 1) #define ls (nod << 1) ...
分类:其他好文   时间:2020-07-29 21:53:09    阅读次数:77
2020杭电多校第三场
1004.Tokitsukaze and Multiple 求和为p的倍数的块的最大数量 #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (register in ...
分类:其他好文   时间:2020-07-29 17:32:55    阅读次数:99
AcWing 826. 单链表
AcWing 826. 单链表 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int e[N],ne[N],head,idx; //初始化 void init(){ head=-1; idx=0; } //将x插到 ...
分类:Windows程序   时间:2020-07-29 15:14:17    阅读次数:98
AcWing 827. 双链表
AcWing 827. 双链表 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int e[N],l[N],r[N],idx; void init(){ //0表示左端点,1表示右端点 r[0]=1; l[1]=0; ...
分类:Windows程序   时间:2020-07-29 15:12:48    阅读次数:86
AcWing 828. 模拟栈
AcWing 828. 模拟栈 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int stk[N],tt; void init(){ tt=0; } void add(int x){ stk[++tt]=x; } ...
分类:Windows程序   时间:2020-07-29 15:11:00    阅读次数:89
AcWing 829. 模拟队列
AcWing 829. 模拟队列 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int q[N],hh,tt; void init(){ hh=0; tt=-1; } void add(int x){ q[++tt ...
分类:Windows程序   时间:2020-07-29 15:09:36    阅读次数:80
AcWing 830. 单调栈
AcWing 830. 单调栈 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int n; int stk[N],tt; int main(){ cin.tie(0); ios::sync_with_stdio(f ...
分类:Windows程序   时间:2020-07-29 15:07:47    阅读次数:84
2020杭电多校第三场题解
2020 Multi-University Training Contest 3 施工中。。。 1004 Tokitsukaze and Multiple #include<bits/stdc++.h> #define ll long long #define maxn 100010 #define ...
分类:其他好文   时间:2020-07-29 14:30:59    阅读次数:162
Codeforces Round #659 (Div. 2)
A. Common Prefixes 题目链接 代码: #include<bits/stdc++.h> using namespace std; const int maxn = 1e6 + 10; #define ll long long #define ios std::ios::sync_wi ...
分类:其他好文   时间:2020-07-29 09:52:41    阅读次数:58
3873条   上一页 1 ... 26 27 28 29 30 ... 388 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!