摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1963题目意思:有 本金 money,还有一些股票的种类,第 i 种股票买入需要 value[i] 这么多钱,相应会有一定的利息interest[i],问经过若干年 year 后,每年都以最优的方案投资,... 阅读全文
posted @ 2014-08-02 15:36 windysai 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/454/B题目意思:给出一个序列你 a1, a2, ..., an。 问每次操作只能通过将最后一个数拿出来插到队首,即 a1, a2, ..., an 变成 an, a1, a2, ..., an - 1。求... 阅读全文
posted @ 2014-08-02 11:36 windysai 阅读(506) 评论(0) 推荐(0) 编辑