zi_qilin

导航

2018年9月18日 #

洛谷P1064 金明的预算方案

摘要: 题目描述 金明今天很开心,家里购置的新房就要领钥匙了,新房里有一间金明自己专用的很宽敞的房间。更让他高兴的是,妈妈昨天对他说:“你的房间需要购买哪些物品,怎么布置,你说了算,只要不超过NN元钱就行”。今天一早,金明就开始做预算了,他把想买的物品分为两类:主件与附件,附件是从属于某个主件的,下表就是一 阅读全文

posted @ 2018-09-18 15:42 zi_qilin 阅读(195) 评论(0) 推荐(0) 编辑

2018年9月4日 #

poj2182 逆推暴力

摘要: 题意 告诉有n头牛,每头牛有一个编号1~n,再一次烂醉之后,奶牛们没有按照编号排队;告诉你对于第i头奶牛,在它之前有多少头奶牛比它的编号小(i>1,因为第1头奶牛的数据永远为0,故题中省略),求每头奶牛的编号 从后往前推,对于第 i 头奶牛,所给数据 num[ i ] 表示它在前 i 头奶牛中排名第 阅读全文

posted @ 2018-09-04 09:08 zi_qilin 阅读(118) 评论(0) 推荐(0) 编辑

2018年8月10日 #

poj_3628 Bookshelf 2

摘要: Description Farmer John recently bought another bookshelf for the cow library, but the shelf is getting filled up quite quickly, and now the only avai 阅读全文

posted @ 2018-08-10 19:41 zi_qilin 阅读(398) 评论(0) 推荐(0) 编辑

poj_3275 Ranking the cows

摘要: Ranking the cows Description Each of Farmer John's N cows (1 ≤ N ≤ 1,000) produces milk at a different positive rate, and FJ would like to order his c 阅读全文

posted @ 2018-08-10 14:51 zi_qilin 阅读(184) 评论(0) 推荐(0) 编辑

poj_3253 Fence Repair

摘要: Fence Repair Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N ( 阅读全文

posted @ 2018-08-10 10:34 zi_qilin 阅读(192) 评论(0) 推荐(0) 编辑