拿到题目到虚拟机里的查看一下 把这些十进制数字转换为16进制,然后利用python deocde 注意0 87这里需要舍弃 ...
分类:
其他好文 时间:
2019-05-09 20:16:20
阅读次数:
376
package utils import ( "bufio" "io" "os" "strings" //"fmt" ) const mid = "==" type Config struct { m map[string]string s string } //config example as ... ...
分类:
其他好文 时间:
2019-05-09 15:09:33
阅读次数:
99
实践第一题的一段代码 int Isomorphic(int root1,int root2) { //用递归结构判断 if(root1 1 && root2 1) return 1; //若都为空树,则同构 if((root1 1 && root2!=-1) || (root1!=-1 && roo ...
分类:
其他好文 时间:
2019-05-06 01:09:01
阅读次数:
125
题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=6012 BaoBao has just found two strings s and in his left pocket, where indicates the th ...
分类:
其他好文 时间:
2019-04-30 19:52:08
阅读次数:
176
1. 原始题目 给定两个以字符串形式表示的非负整数 num1 和 num2,返回 num1 和 num2 的乘积,它们的乘积也表示为字符串形式。 示例 1: 输入: num1 = "2", num2 = "3" 输出: "6" 示例 2: 输入: num1 = "123", num2 = "456" ...
分类:
其他好文 时间:
2019-04-30 12:11:46
阅读次数:
120
传送:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=6012 题意:给定两个串$S$和$T$,可以翻转$S$串中的任意一个子段,得到$T$。问,可以翻转的方案书有多少? 数据范围:多组数据。$1\leq|S|\leq2\time ...
分类:
其他好文 时间:
2019-04-29 21:14:59
阅读次数:
152
题意 给你两个串,可以翻转a串的一个区间,问有多少对l,r使得翻转后的a串等于b串 题解 沙比提,比赛时想了想两个串相等就用马拉车求回文子串个数,觉得两个串不相等情况很复杂就没想下去了,其实两个串不相等的情况更好处理 两个串不一样的话,一定需要翻转第一个和最后一个不相等的位置(关键),判一下中间是不 ...
分类:
其他好文 时间:
2019-04-28 09:49:22
阅读次数:
150
时间限制:10000ms 单点时限:1000ms 内存限制:256MB Description Consider a string set that each of them consists of {0, 1} only. All strings in the set have the same ...
分类:
其他好文 时间:
2019-04-26 14:54:44
阅读次数:
146
According to ES5 spec section 11.6.1, the + algorithm (when an object value is an operand) will concatenate if either operand is either already a stri ...
分类:
其他好文 时间:
2019-04-24 00:01:54
阅读次数:
163
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2019-04-23 12:50:19
阅读次数:
122