码迷,mamicode.com
首页 >  
搜索关键字:usaco 2008 nov gold    ( 2742个结果
HDU 4341 分组背包
B -Gold minerTime Limit:2000MSMemory Limit:32768KB DescriptionHomelesser likes playing Gold miners in class. He has to pay much attention to the teac....
分类:其他好文   时间:2015-08-20 20:28:40    阅读次数:181
HDU 4341 Gold miner
先把线按照距离原点的距离排序,然后用叉积把在同一条直线上的点放在一起,把在同一条线上的点中的前i个点当成一个点就,就转化成了分组背包。写if(kas++) putchar('\n') 居然PE了#includeusing namespace std;int N,T;const int maxn = ...
分类:其他好文   时间:2015-08-20 20:22:17    阅读次数:167
最小生成树Prim——最短网络(洛谷1546)(USACO 3.1.1)可当Prim模板
题目背景Background农民约翰被选为他们镇的镇长!他其中一个竞选承诺就是在镇上建立起互联网,并连接到所有的农场。当然,他需要你的帮助。题目描述Description约翰已经给他的农场安排了一条高速的网络线路,他想把这条线路共享给其他农场。为了用最小的消费,他想铺设最短的光纤去连接所有的农场。你...
分类:其他好文   时间:2015-08-20 01:15:26    阅读次数:182
Go使用goquery获取url小实例
package main import ( "fmt" "github.com/PuerkitoBio/goquery" ) func main() { g, e := goquery.NewDocument("http://gold.3g.cnfol.com/") if e != nil { fmt.Println(e) } c := g.Find("ul") s := ...
分类:Web程序   时间:2015-08-19 09:27:25    阅读次数:1937
集训第六周 古典概型 期望 D题 Discovering Gold 期望
DescriptionYou are in a cave, a long cave! The cave can be represented by a1 x Ngrid. Each cell of the cave can contain any amount of gold.Initially y...
分类:其他好文   时间:2015-08-18 21:07:57    阅读次数:210
NBUT 1217 Dinner
[1217] Dinner 时间限制: 1000 ms 内存限制: 32768 K 问题描述 Little A is one member of ACM team. He had just won the gold in World Final. To celebrate, he decided to invite all to have one meal. As bowl, kni...
分类:其他好文   时间:2015-08-18 16:33:02    阅读次数:140
USACO CHAPTER 1 1.1 Ride 水题
水题,主要是学习文件输入输出。 1 /* 2 ID: ijustwa1 3 LANG: C++ 4 TASK: ride 5 */ 6 #include 7 #include 8 9 using namespace std;10 11 const int base=16;12 const int ....
分类:其他好文   时间:2015-08-18 00:57:24    阅读次数:143
【动态规划/二维背包问题】mr355-三角形牧场
应该也是USACO的题目?同样没有找到具体出处。【题目大意】和所有人一样,奶牛喜欢变化。它们正在设想新造型牧场。奶牛建筑师Hei想建造围有漂亮白色栅栏的三角形牧场。她拥有N(3≤N≤40)块木板,每块的长度L(1≤L≤40)都是整数,她想用所有的木板围成一个三角形使得牧场面积最大。请帮助Hei小姐构...
分类:其他好文   时间:2015-08-17 13:53:24    阅读次数:101
【深度优先搜索】mr353-取奶
应该是USACO的题目,暂时没有找到对应出处。【题目大意】农夫约翰要量取 Q(1 2 #include 3 #include 4 using namespace std; 5 int q,p;//q是总容积,p是商店里桶的数量 6 const int MAXN=10000+50; 7 int v[....
分类:其他好文   时间:2015-08-17 13:45:18    阅读次数:105
UASCO Wormholes 解析 and C 语言实现
UASCO Wormholes 解析 and C 语言实现...
分类:编程语言   时间:2015-08-15 12:07:07    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!