码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
zoj 1949 Error Correction
A boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits which are set. Here's a 4 ...
分类:其他好文   时间:2017-03-09 19:47:49    阅读次数:195
461. Hamming Distance
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: Example 1: Exa ...
分类:其他好文   时间:2017-03-08 13:29:36    阅读次数:204
LeetCode 191. Number of 1 Bits
191. Number of 1 Bits Add to List 191. Number of 1 Bits Add to List Add to List Description Submission Solutions Total Accepted: 137583 Total Submissi ...
分类:其他好文   时间:2017-03-08 10:56:07    阅读次数:179
usaco4
/*ID:marcoLANG:C++TASK:beads*/#include<bits/stdc++.h>using namespace std; int main(){ freopen("beads.in","r",stdin); freopen("beads.out","w",stdout); ...
分类:其他好文   时间:2017-03-07 19:37:59    阅读次数:115
usaco3
/*ID:marcoLANG:C++TASK:friday*/#include<bits/stdc++.h>#define for(i,k,n) for (int i = k; i <= n; i++) using namespace std; const int MAXN = 110, DAYS[ ...
分类:其他好文   时间:2017-03-07 19:33:29    阅读次数:203
usaco1
/*ID:marcoLANG:C++TASK:ride*/#include<bits/stdc++.h>using namespace std;int a[1010],b[1010],n,n1,n2;string x,y; int main(){ freopen("ride.in","r",stdi ...
分类:其他好文   时间:2017-03-07 19:08:22    阅读次数:139
Codeforces Round #403 (Div. 2)解题报告
A. 1 #include <iostream> 2 #include<bits/stdc++.h> 3 #include <stack> 4 #include <queue> 5 #include <map> 6 #include <set> 7 #include <cstdio> 8 #incl ...
分类:其他好文   时间:2017-03-07 15:13:39    阅读次数:290
中国(北方)大学生程序设计训练赛(第一周)
比赛链接 D题是个二分,每次check复杂度为O(n),类似于xdu_1068,只是一个是求积,一个是求商 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef long double LF; const ...
分类:其他好文   时间:2017-03-05 18:14:31    阅读次数:256
分块基础练习 UESTC 1324
http://acm.uestc.edu.cn/#/problem/show/1324 思路:基础分块,这个是一个特别简单的分块,就当做是一个练习了。然后这题也是很简单的单点线段树更新。 //看看会不会爆int!数组会不会少了一维! //取物问题一定要小心先手胜利的条件 #include <bits ...
分类:其他好文   时间:2017-03-04 15:24:25    阅读次数:190
hdu 1704 Rank(floyd传递闭包)
题目链接:hdu 1704 Rank 题意: 有n个人,m场比赛,a与b打,每场都是awin,问不能确定其中两个人的win情况数。 题解: floyd传递闭包,这里我用bitset优化了一下。 1 #include<bits/stdc++.h> 2 #define F(i,a,b) for(int ...
分类:其他好文   时间:2017-03-03 19:12:16    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!