![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DP
渴鱼
菜鸟进行曲
展开
-
USACO-2017-JAN-金组 Hoof, Paper, Scissors
题目You have probably heard of the game “Rock, Paper, Scissors”. The cows like to play a similar game they call “Hoof, Paper, Scissors”. The rules of “Hoof, Paper, Scissors” are simple. Two cows play a原创 2017-08-18 21:00:58 · 480 阅读 · 0 评论 -
cirs
分治 动态规划 cirs原创 2017-08-18 19:06:22 · 304 阅读 · 0 评论 -
USACO-2017-FEB-金组 Why Did the Cow Cross the Road II
题目描述Farmer John raises N breeds of cows (1≤N≤1000), conveniently numbered 1…N. Some pairs of breeds are friendlier than others, a property that turns out to be easily characterized in terms of breed ID原创 2017-08-18 23:31:05 · 674 阅读 · 0 评论 -
奶牛的编号
题目描述有N(1≤N≤1000)头奶牛,它们都被标上一个优先等级编号:1,2或3。用来表示它们喝水时的优先次序,编号为l的最优先,编号为2的其次,编号为3的最后。每天奶牛开始时排成一行,但总是很乱,需要你把它们重新排成编号为1的奶牛在最前面,编号为2的其次,编号为3的奶牛在最后。你能计算出最少需要多少的交换次序来完成这次重排吗?输入第1行:1个整数N; 第2至N+I行:第i+l行有一个整数表示开始原创 2017-08-21 14:18:09 · 1057 阅读 · 0 评论 -
广西 2017 邀请赛 Duizi and Shunzi
题目描述Nike likes playing cards and makes a problem of it. Now give you n integers,ai(1 ≤ i ≤ n) We define two identical numbers (eg: 2,2) a Duizi, and three consecutive positive integers (eg: 2,3,4) a原创 2017-08-31 02:18:30 · 367 阅读 · 0 评论 -
河南省第十届大学生程序设计竞赛 年终奖金
题目描述*公司承接了N个项目需要年底完成,每个项目有一定的难度系数。由于项目太多了,需要招聘大量的技术人员。要求每个技术人员至少完成K个项目。 考虑到有些项目之间相似性以及项目的难易程度,为了避免某些员工只挑选轻松项目,CEO提出了一个奖励机制,当技术人员完成分配给他的任务后,年终可以得到一笔奖金,其得到的酬金将是C + (Tmax–Tmin)2。其中,Tmax表示所做项目的最大的难度系数,Tmi原创 2017-08-31 20:56:22 · 280 阅读 · 0 评论