题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5518 题意就是有n个数,如果满足a^b > MAX(a, b),就算一种组合,问n个数之间这样的组合有多少个; 可以发现,如果要让一个数增大,只要该数化为二进制后的... Read More
posted @ 2015-08-18 10:38
西瓜不懂柠檬的酸
Views(443)
Comments(0)
Diggs(0)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1094Given a tree (a connected graph with no cycles), you have to find the farthest nodes in the... Read More
posted @ 2015-08-18 09:30
西瓜不懂柠檬的酸
Views(292)
Comments(0)
Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1260题意就是有n个人排队买票,每个人需要的时间是a[i] (1=#include#include#includeusing namespace std;#define N 2200#define INF... Read More
posted @ 2015-08-18 08:58
西瓜不懂柠檬的酸
Views(793)
Comments(0)
Diggs(0)