http://www.36dsj.com/archives/33650 http://flink.apache.org/news/2015/05/11/Juggling-with-Bits-and-Bytes.html http://www.bigsynapse.com/addressing-big... ...
分类:
其他好文 时间:
2016-03-29 21:27:49
阅读次数:
335
题目大意:给一个N*M的矩阵,选出N个数,使得每行没列只选一个数,求第K大的数的最小值是多少? 二分答案,第k大的数<=x,则有N-k+1个数<=k,用二分图判定。 #include<bits/stdc++.h> using namespace std; int n,m,k; int a[255][ ...
分类:
其他好文 时间:
2016-03-29 18:05:05
阅读次数:
141
问题今天在学习进程间通信之-信号signal–linux内核剖析(九)
遇见了一个奇怪的问题storage size of ‘oldact’ isn’t known于是FQ去google之。分析了好久,终于发现问题的原因了。于是记录下来发现测试的代码如下
#include
#include #include #include <bits/...
分类:
其他好文 时间:
2016-03-28 00:15:26
阅读次数:
344
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 repres ...
分类:
其他好文 时间:
2016-03-24 20:03:00
阅读次数:
246
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
分类:
其他好文 时间:
2016-03-23 18:27:42
阅读次数:
167
Neat DP problem to go. If you don't like log(), you can use lookup table.
分类:
其他好文 时间:
2016-03-21 13:57:56
阅读次数:
114
这道题考察的是一个二进制的特性。通过n&(n-1)可以判断n的二进制表示中有几个1.(最开始超时这道题的时候我心中是万马奔腾的) 开始我的代码:
分类:
其他好文 时间:
2016-03-20 17:44:45
阅读次数:
141
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
分类:
编程语言 时间:
2016-03-19 23:00:17
阅读次数:
275
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
分类:
其他好文 时间:
2016-03-19 01:03:39
阅读次数:
337
题目:
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 return them as an array.
Example:
For num = 5...
分类:
其他好文 时间:
2016-03-18 21:56:44
阅读次数:
208