摘要: 链接: https://nanti.jisuanke.com/t/17414 题意: 求f(n) = n ^ f(n-1) % m 题解: 指数降幂公式 代码: 阅读全文
posted @ 2017-10-04 11:06 Flowersea 阅读(326) 评论(0) 推荐(1) 编辑
摘要: 链接: https://nanti.jisuanke.com/t/17412 题意: 给你n张扑克,问你最少移动多少次使得排列好 排列好是指同种花色在一起,并且递增或者递减 题解: 生成所有排列好的数列,然后求lcs 代码: 阅读全文
posted @ 2017-10-04 10:01 Flowersea 阅读(415) 评论(0) 推荐(1) 编辑