1239专题

【HDU】 1239 Calling Extraterrestrial Intelligence Again

Calling Extraterrestrial Intelligence Again 题目链接 Calling Extraterrestrial Intelligence Again 题目大意     题目名字好长~~     题目也好长~~     其实看最后一段就够了…给你三个数m,a,b 现在要你求两个质数p,q满足 ab≤pq≤1    m≥pq    m

leetcode 1239. 串联字符串的最大长度——回溯+位运算

1239. 串联字符串的最大长度 题目 给定一个字符串数组 arr,字符串 s 是将 arr 某一子序列字符串连接所得的字符串,如果 s 中的每一个字符都只出现过一次,那么它就是一个可行解。 请返回所有可行解 s 中最长长度。 示例 输入:arr = ["un","iq","ue"]输出:4解释:所有可能的串联组合是 "","un","iq","ue","uniq" 和 "ique",