摘要: Drazil created a following problem about putting 1 × 2 tiles into an n × m grid: "There is a grid with some cells that are empty and some cells that a 阅读全文
posted @ 2019-02-15 20:28 千摆渡Qbd 阅读(244) 评论(0) 推荐(0)
摘要: 传送门 题意:你有n个数字,范围[1, m],你可以选择其中的三个数字构成一个三元组,但是这三个数字必须是连续的或者相同的,每个数字只能用一次,问这n个数字最多构成多少个三元组? 题解:三个一模一样的顺子等于三个对子(三张) 阅读全文
posted @ 2019-02-15 18:47 千摆渡Qbd 阅读(140) 评论(0) 推荐(0)
摘要: Multiplication Puzzle ZOJ - 1602 传送门 The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the mo 阅读全文
posted @ 2019-02-15 09:31 千摆渡Qbd 阅读(203) 评论(0) 推荐(0)