rt,直接猜1
First Digit
Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge
Benford's Law, also called the First-Digit Law, refers to the frequency distribution of digits i...
分类:
其他好文 时间:
2014-06-20 13:04:39
阅读次数:
277
Burn the Linked Camp
It is well known that, in the period of The Three Empires, Liu Bei, the emperor of the Shu Empire, was defeated by Lu Xun, a general of the Wu Empire. The defeat was due to Liu B...
分类:
其他好文 时间:
2014-06-20 12:57:12
阅读次数:
240
n个点,m条边
每条边两个整数a、b,表示a到b的有向边
求,至少需要几个集合,使得:每个集合中的元素互相不能到达
N(1≤ N≤ 100000), M(1≤ M≤ 300000)...
分类:
其他好文 时间:
2014-06-20 11:52:46
阅读次数:
175
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=151For each list
of words, output a line with each word reversed without changing the or...
分类:
其他好文 时间:
2014-06-10 00:14:19
阅读次数:
300
HTC A510C电信手机刷机过程记录Writed by Peter Hu(2014.6.7) ON
WIN7_64刷机需要的步骤:1) 将S-ON加密保护式去掉,改成S-OFF模式,这样才能刷机,这一步是最难的。2) 刷入RECOVERY 包(俗称RC)3)
刷入ROM包S-ON状态置为S-OFF...
分类:
移动开发 时间:
2014-06-09 22:42:29
阅读次数:
401
【题解】:【代码】: 1 #include 2 #include 3 #include 4
#include 5 #include 6 #define LL long long 7 using namespace std; 8 LL
dp[15][100005]; 9 LL N,h,uh,...
分类:
其他好文 时间:
2014-06-08 20:08:41
阅读次数:
261
给n个人的年龄大小关系,问最少分几组使每个组里面人的年龄不能直接或间接的比较。
每个联通块里的人都得分到不同的组,缩点后找最长的链即答案
tarjian缩点+dp找最长路
Grouping
Time Limit: 2 Seconds Memory Limit: 65536 KB
Suppose there are N people in ZJU, who...
分类:
其他好文 时间:
2014-06-08 09:44:30
阅读次数:
321
离散化+暴力
Consecutive Blocks
Time Limit: 2 Seconds Memory Limit: 65536 KB
There are N (1 ≤ N ≤ 105) colored blocks (numbered 1 to N from left to right) which are lined up in a row. An...
分类:
其他好文 时间:
2014-06-07 13:08:07
阅读次数:
193
并查集,
删除节点操作,可以用新建节点代替
维护每个点到跟节点的距离
Gears
Time Limit: 2 Seconds Memory Limit: 65536 KB
Bob has N (1 ≤ N ≤ 2*105) gears (numbered from 1 to N). Each gear can rotate clockwise or co...
分类:
其他好文 时间:
2014-06-07 11:33:37
阅读次数:
227