码迷,mamicode.com
首页 >  
搜索关键字:reverse bits    ( 8842个结果
Kruskal算法
#include <bits/stdc++.h> #define MAXN 200005 using namespace std; int node,edge,ans=0,k=0; int fat[MAXN],siz[MAXN]; struct EDGE { int from,to,cost; } ...
分类:编程语言   时间:2020-07-30 01:20:30    阅读次数:71
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年7月29日 数组操作练习
/* 1、数组的练习 用一个数组存储本组学员的成绩,并遍历显示 (1)其中学员的人数从键盘输入 (2)学员的成绩从键盘输入 */ class Test08_Exer4{ public static void main(String[] args){ /* 步骤: 1、先确定人数,从键盘输入 2、声明 ...
分类:编程语言   时间:2020-07-29 17:40:02    阅读次数:65
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
8842条   上一页 1 ... 36 37 38 39 40 ... 885 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!