随笔分类 -  动态规划

摘要:Time Limit: 2 sec / Memory Limit: 1024 MB Score : 500500 points Problem Statement There are NN camels numbered 11 through NN. The weight of Camel ii i 阅读全文
posted @ 2020-11-30 16:29 Anticlock 阅读(125) 评论(0) 推荐(0)
摘要:Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irrever 阅读全文
posted @ 2019-11-10 13:31 Anticlock 阅读(142) 评论(0) 推荐(0)
摘要:A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time 阅读全文
posted @ 2019-11-10 13:07 Anticlock 阅读(209) 评论(0) 推荐(0)
摘要:Now I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to more difficult problems. Now y 阅读全文
posted @ 2019-11-09 21:43 Anticlock 阅读(208) 评论(0) 推荐(0)
摘要:题目描述 繁繁有一个双向队列,队列里有数字1-N这N个数字,繁繁每次可以从队列中任意拿出一个数字,将其放在队列的头部或者队列的尾部,不停这样操作,直到队列变成升序,求最小操作次数。 输入 第一行一个数字N(N<=50000) 接下来N行,每行一个数字 输出 一个数表示最小操作次数 样例输入 5 2 阅读全文
posted @ 2019-11-04 21:43 Anticlock 阅读(275) 评论(0) 推荐(0)