摘要:
http://codeforces.com/contest/371/problem/D第一遍写的超时了,然后看了别人的代码,思路都是找一个点的根,在往里面加水的时候碗中的水满的时候建立联系。查询的时候直接查询就行。 1 #include 2 #include 3 #include 4 #def... 阅读全文
posted @ 2014-11-02 23:16
null1019
阅读(215)
评论(0)
推荐(0)
摘要:
http://codeforces.com/contest/371/problem/C二分枚举最大汉堡包数量就可以。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 char s[110]; 7 int n1,n2,n3... 阅读全文
posted @ 2014-11-02 19:46
null1019
阅读(207)
评论(0)
推荐(0)
摘要:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5203题意:有n个1然后按照b进制转化为10进制数,判断这个数是不是素数。 1 #include 2 #include 3 #define LL unsigned long l... 阅读全文
posted @ 2014-11-02 17:23
null1019
阅读(168)
评论(0)
推荐(0)
摘要:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5264题意:给出n道题目以及每一道题目不同时间做的兴趣值,让你求出所有做题顺序中兴趣值大于等于m的比例。用一个分数表示。状压dp。 枚举每一个状态,用二进制表示。dp[i][j]表... 阅读全文
posted @ 2014-11-02 16:23
null1019
阅读(345)
评论(0)
推荐(0)
摘要:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5265先确定n和m的大小,m大就输出最大值就可以。否则比较sum/m和max1的大小。 1 #include 2 #include 3 #include 4 using na... 阅读全文
posted @ 2014-11-02 15:28
null1019
阅读(172)
评论(0)
推荐(0)

浙公网安备 33010602011771号