码迷,mamicode.com
首页 >  
搜索关键字:reverse bits    ( 8842个结果
AcWing 794. 高精度除法
AcWing 794. 高精度除法 #include <bits/stdc++.h> using namespace std; vector<int> div(vector<int> &A,int b,int &r){ vector<int> C; for(int i=A.size()-1;i>=0 ...
分类:Windows程序   时间:2020-07-28 14:27:06    阅读次数:80
AcWing 795. 前缀和
AcWing 795. 前缀和 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int a[N],S[N]; int main(){ int n,m; scanf("%d%d",&n,&m); for(int i=1 ...
分类:Windows程序   时间:2020-07-28 14:26:44    阅读次数:81
AcWing 796. 子矩阵的和
AcWing 796. 子矩阵的和 #include <bits/stdc++.h> using namespace std; const int N=1e3+10; int a[N][N],S[N][N]; int main(){ int n,m,q; scanf("%d%d%d",&n,&m,& ...
分类:Windows程序   时间:2020-07-28 14:24:39    阅读次数:87
AcWing 797. 差分
AcWing 797. 差分 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int a[N],b[N]; void insert(int l,int r,int c){ b[l]+=c; b[r+1]-=c; } ...
分类:Windows程序   时间:2020-07-28 14:24:15    阅读次数:82
AcWing 798. 差分矩阵
AcWing 798. 差分矩阵 #include <bits/stdc++.h> using namespace std; const int N=1e3+10; int a[N][N],b[N][N]; void insert(int x1,int y1,int x2,int y2,int c) ...
分类:Windows程序   时间:2020-07-28 14:22:06    阅读次数:82
AcWing 799. 最长连续不重复子序列
AcWing 799. 最长连续不重复子序列 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int a[N],s[N]; int main(){ int n; cin>>n; for(int i=0;i<n;i++ ...
分类:Windows程序   时间:2020-07-28 14:21:52    阅读次数:93
AcWing 801. 二进制中1的个数
AcWing 801. 二进制中1的个数 #include <bits/stdc++.h> using namespace std; int lowbit(int x){ return x&-x; } int main(){ int n; cin>>n; while(n--){ int x,res= ...
分类:Windows程序   时间:2020-07-28 14:19:17    阅读次数:88
AcWing 793. 高精度乘法
AcWing 793. 高精度乘法 #include <bits/stdc++.h> using namespace std; vector<int> mul(vector<int> &A,int b){ int t=0; vector<int> C; for(int i=0;i<A.size()| ...
分类:Windows程序   时间:2020-07-28 14:18:33    阅读次数:72
牧场的安排(状压DP入门)
:将每行输入的数字转换为十进制,然后预处理出所有满足题意的状态并存储于 sta ,再处理出单独一行时候的方案数并存储于 dp1,sta 枚举第 i 行的状态,判断第 j = i-1行的状态,并更新dpi , j ,最后累和即可 #include <bits/stdc++.h> using names ...
分类:其他好文   时间:2020-07-28 14:10:58    阅读次数:62
Codeforces Round #659 (Div. 2) B1. Koa and the Beach (Easy Version)
题意 小明从一岸游泳到另一岸,每片区域有水深,一旦水深超过L,小明就会淹死 同时每段时刻有海浪和退潮 搜索一下 然后记忆化一下 老了,搜索写半天 #include<bits/stdc++.h> using namespace std; /*int main() { // freopen("data2 ...
分类:其他好文   时间:2020-07-27 23:58:02    阅读次数:127
8842条   上一页 1 ... 38 39 40 41 42 ... 885 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!