http://poj.org/problem?id=2513 #include<cstdio> #include<cstdlib> #include<cstring> using namespace std; ; ; int f[max_node]; int du[max_node]; ; int ch[max_node][sign_node]; int val[max_node]; struct Trie { int sz; ; memset(ch[],,]));}…
RMQ+二分....枚举 i ,找比 i 小的第一个元素,再找之间的第一个最大元素..... Sticks Problem Time Limit: 6000MS Memory Limit: 65536K Total Submissions: 9338 Accepted: 2443 Description Xuanxuan has n sticks of different length. One day, she puts all her stick…
Sticks Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 126238 Accepted: 29477 Description George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the or…
Sticks Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 127771 Accepted: 29926 Description George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the or…
题目链接:http://poj.org/problem?id=1011 Sticks Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 154895 Accepted: 37034 Description George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now…