Fork me on GitHub
摘要: 用1,2,3,...9组成3个3位数abc, def, ghi;每个数字恰好用一次,要求 abc:def :ghi = 1: 2 : 3;按照abc : def : ghi的格式输出。 通常想到的思路为枚举9个数, 然后再去判断;这样的话最小复杂度为9 * 9 * 9; 枚举消耗的时间相对来说较大, 阅读全文
posted @ 2017-03-30 10:57 lMonster81 阅读(222) 评论(1) 推荐(0) 编辑
摘要: A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, t 阅读全文
posted @ 2017-03-30 10:53 lMonster81 阅读(420) 评论(0) 推荐(0) 编辑
/*评论*/ /*top按钮*/

/* 网易云控件 */