摘要: Pocket CubeProblem DescriptionThe Pocket Cube, also known as the Mini Cube or the Ice Cube, is the 2 × 2 × 2 equivalence of a Rubik’s ... 阅读全文
posted @ 2017-10-22 17:33 不想吃WA的咸鱼 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 有N种物品,每种物品的数量为C1,C2......Cn。从中任选若干件放在容量为W的背包里,每种物品的体积为W1,W2......Wn(Wi为整数),与之相对应的价值为P1,P2......Pn(Pi为整数)。求背包能够容纳的最大价值。Input第1行,2个整数,N和... 阅读全文
posted @ 2017-10-22 16:03 不想吃WA的咸鱼 阅读(88) 评论(0) 推荐(0) 编辑