摘要:
用1,2,3,...9组成3个3位数abc, def, ghi;每个数字恰好用一次,要求 abc:def :ghi = 1: 2 : 3;按照abc : def : ghi的格式输出。 通常想到的思路为枚举9个数, 然后再去判断;这样的话最小复杂度为9 * 9 * 9; 枚举消耗的时间相对来说较大, 阅读全文
摘要:
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 阅读全文