码迷,mamicode.com
首页 >  
搜索关键字:bits    ( 3873个结果
bzoj2300
http://www.lydsy.com/JudgeOnline/problem.php?id=2300 终于对了。。。 平衡树又写挂了。。。不要忘记清空原先的root和修改root。。。 #include<bits/stdc++.h> using namespace std; const int ...
分类:其他好文   时间:2017-05-21 12:51:54    阅读次数:168
BZOJ2208
LINK:http://www.lydsy.com/JudgeOnline/problem.php?id=2208 MD水题 正解应该是Trajan缩点+递推 但是暴力O(nm)都能跑10s内 这题就太思博了吧 1 #include <bits/stdc++.h> 2 using namespace ...
分类:其他好文   时间:2017-05-20 13:55:31    阅读次数:167
bzoj1833
http://www.lydsy.com/JudgeOnline/problem.php?id=1833 2.5个小时就花在这上面了。。。 水到200题了。。。然并卵,天天做水题有什么前途。。。 #include<bits/stdc++.h> using namespace std; typedef ...
分类:其他好文   时间:2017-05-20 13:52:06    阅读次数:118
[leetcode-191-Number of 1 Bits]
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit ...
分类:其他好文   时间:2017-05-20 00:04:21    阅读次数:177
BestCoder Round #81 (div.2)
HDU:5670~5764 A题: 是一个3进制计数; 1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 int a[100000]; 6 7 int calc(long long n) { 8 int i=0; 9 while(n) { ...
分类:其他好文   时间:2017-05-19 18:44:49    阅读次数:219
[leetcode-338-Counting Bits]
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r ...
分类:其他好文   时间:2017-05-19 11:13:54    阅读次数:144
[LeetCode]Reverse Bits
题目:Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Have you thought about this? Here are so ...
分类:其他好文   时间:2017-05-18 23:56:51    阅读次数:312
关于#include <bits/stdc++.h>
经常看人写#include <bits/stdc++.h>却不知道是干啥的? #include<bits/stdc++.h>包含了目前c++所包含的所有头文件 对比: 这么神奇?可以这么轻松? 兼容性问题: 注意,目前POJ还不支持<bits/stdc++.h>(G++、C++都不支持)。HDU部分 ...
分类:编程语言   时间:2017-05-18 20:18:52    阅读次数:297
hdu 6025 Coprime Sequence (前后缀GCD)
题目链接:hdu 6025 Coprime Sequence 题意: 给你n个数,让你删掉一个数,使得剩下的数的gcd最大 题解: 先将这一列数的前缀后缀gcd预处理一下。 然后挨着for一下就行了 1 #include<bits/stdc++.h> 2 #define F(i,a,b) for(i ...
分类:其他好文   时间:2017-05-16 23:18:20    阅读次数:241
Tinkoff Challenge - Final Round (ABC)
A题:从两个保安中间那钞票 1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 int main() 6 { 7 int a,b,c; 8 scanf("%d%d%d",&a,&b,&c); 9 int n; 10 scanf("%d",& ...
分类:其他好文   时间:2017-05-16 20:45:28    阅读次数:183
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!