DescriptionAfter winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made ofnhorizont...
分类:
其他好文 时间:
2014-07-27 22:17:59
阅读次数:
309
题目来源:POJ 3228 Gold Transportation
题意:有一些金矿要运走存储 求运送的最小最长边
思路:并查集 按边长从小到大排序 如果满足每个连通分量金矿的和小于等于存储的容量 那么就break输出
#include
#include
#include
using namespace std;
const int maxn = 210;
int f[maxn], r...
分类:
其他好文 时间:
2014-07-27 11:14:22
阅读次数:
209
Gold Balanced LineupTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 12110Accepted: 3553DescriptionFarmer John's N cows (1 ≤ N ≤ 100,000) shar...
分类:
其他好文 时间:
2014-07-24 21:44:42
阅读次数:
338
题目地址:Gold Balanced Lineup题目大意: 一个农场有N个奶牛,每个奶牛都有不同的特征,聪明的农夫给奶牛feature ID。代表奶牛所具有的特征。将feature ID 写成为K位的二进制的数,其中有1的位置代表奶牛具有此特征,0代表没有此特征。从i->j 使这个区间的奶牛所有....
分类:
其他好文 时间:
2014-07-23 16:31:01
阅读次数:
211
Description
Some of you may have played a game called 'Blocks'. There are n blocks in a row, each box has a color. Here is an example: Gold, Silver, Silver, Silver, Silver, Bronze, Bronze, Bronze, Go...
分类:
其他好文 时间:
2014-07-18 11:23:05
阅读次数:
280
Description
Byteman, one of the most deserving employee of The Goldmine of Byteland, is about to retire by the end of the year. The Goldmine management would like to reward him in acknowledgment...
分类:
其他好文 时间:
2014-07-17 10:24:12
阅读次数:
307
H - Gold Coins(2.4.1)
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
The king pays his loyal knight in gold coins. On the first ...
分类:
其他好文 时间:
2014-07-15 13:14:28
阅读次数:
275
Gold Coins
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 20913
Accepted: 13098
Description
The king pays his loyal knight in gold coins. On the first day o...
分类:
其他好文 时间:
2014-07-13 20:45:45
阅读次数:
205
题目链接:http://poj.org/problem?id=2000题目大意:求N天得到多少个金币,第一天得到1个,第二、三天得到2个,第四、五、六天得到3个、、、、以此类推,得到第N天的金币数。 1 #include 2 #include 3 #include 4 using namesp...
分类:
其他好文 时间:
2014-07-12 08:51:24
阅读次数:
176
Through years of experiment, we have created the new generation of crushers with different series. These crushers can all be successfully used in the ...
分类:
其他好文 时间:
2014-07-10 10:00:41
阅读次数:
231