码迷,mamicode.com
首页 >  
搜索关键字:usaco 2008 feb gold    ( 2720个结果
ACM训练二A题
这个题目很简单,虽然看上去高大上,只要找规律就行了,多看看,找找例子。-不过我花了蛮久才看出来,惭愧啊,其实就是看n.m中最小的数是奇数还是偶数。After winning gold and silver in IOI 2014, Akshat and Malvika want to have so...
分类:其他好文   时间:2014-07-29 11:54:46    阅读次数:300
POJ 3623 Best Cow Line, Gold(字符串处理)
题意:给你一个字符串,让你重新排列,只能从头或者尾部取出一个放到新字符串队列的最后。按照字典序。解决方法:比较前后两个的大小,谁小输出谁,相等,就往当中比来确定当前应该拿最前面的还是最后面的,如果再相等就继续...。所以比较这个动作的单一功能,可以写成一个check函数,方便操作也方便递归。#inc...
分类:其他好文   时间:2014-07-29 11:33:46    阅读次数:241
acm集训训练赛A题【签到题】
一、题目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 ofnhori...
分类:其他好文   时间:2014-07-27 22:38:59    阅读次数:311
Codeforces 451A Game With Sticks
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
USACO humble
用set构造,优先队列和堆也可以 /* ID:kevin_s1 PROG:humble LANG:C++ */ #include #include #include #include #include #include #include #include #include #include #include using namespace std; #defi...
分类:其他好文   时间:2014-07-27 11:22:12    阅读次数:141
POJ 3228 Gold Transportation 并查集
题目来源: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
USACO Section 2.1 Healthy Holsteins
/* ID: lucien23 PROG: holstein LANG: C++ */ #include #include #include using namespace std; bool compFun(int x, int y) { int temp, i = 0; while (true) { temp = 1 < temp&y...
分类:其他好文   时间:2014-07-24 23:11:33    阅读次数:433
poj 3274 -- Gold Balanced Lineup
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
poj3274(Gold Balanced Lineup)
题目地址:Gold Balanced Lineup题目大意: 一个农场有N个奶牛,每个奶牛都有不同的特征,聪明的农夫给奶牛feature ID。代表奶牛所具有的特征。将feature ID 写成为K位的二进制的数,其中有1的位置代表奶牛具有此特征,0代表没有此特征。从i->j 使这个区间的奶牛所有....
分类:其他好文   时间:2014-07-23 16:31:01    阅读次数:211
USACO agrinet Prim
裸最短生成树 /* ID:kevin_s1 PROG:agrinet LANG:C++ */ #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define MAXN 110 #...
分类:Web程序   时间:2014-07-20 23:19:44    阅读次数:472
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!