Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
题目并不复杂,以下是我的程序,后面是别人的程序,瞬间low了好大一截!
冗长!!!!!!!class Solution {
public:
s...
分类:
其他好文 时间:
2015-07-29 01:08:13
阅读次数:
133
E. Palindrome QueryTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100570/problem/EDescriptionDe Prezer loves palindrome strings. ...
分类:
其他好文 时间:
2015-07-29 00:28:50
阅读次数:
356
DescriptionToday on a lecture about strings Gerald learned a new definition of string equivalency. Two stringsaandbof equal length are calledequivalen...
分类:
其他好文 时间:
2015-07-28 22:40:08
阅读次数:
122
Submit StatusDescriptionToday on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length ar...
分类:
其他好文 时间:
2015-07-28 22:39:25
阅读次数:
121
一、Redis简介:
Redis(http://redis.io)是一款开源的、高性能的键-值存储(key-value store),它是用ANSI C来编写。Redis的项目名是Remote Dictionary Server的缩写,但它常被称作是一款数据结构服务器(data structureserver)。Redis的键值可以包括字符串(strings)、哈希(hashes)、列表(lis...
分类:
其他好文 时间:
2015-07-28 18:51:05
阅读次数:
125
题目如下:
Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a minute to figure out that those strange st...
分类:
其他好文 时间:
2015-07-28 16:04:31
阅读次数:
176
Power Strings Problem's Link: http://poj.org/problem?id=2406 Mean:给你一个字符串,让你求这个字符串最多能够被表示成最小循环节重复多少次得到。 analyse: KMP之next数组的运用。裸的求最小循环节。 ...
分类:
其他好文 时间:
2015-07-28 09:06:06
阅读次数:
95
package?main
import?(
"fmt"
"log"
"net/http"
"strings"
)
func?sayhelloName(w?http.ResponseWriter,?r?*http.Request)?{
r.ParseForm()???????//解析参数,?默认是不会解析的
fmt.Pri...
分类:
Web程序 时间:
2015-07-28 01:14:04
阅读次数:
382
题意:定义a为一个字符串,a*a表示两个字符相连,即 an+1=a*an,也就是出现循环了。给定一个字符串,若将其表示成an,问n最大为多少?思路:如果完全不循环,顶多就是类似于abc1这样咯,即n=1。但是如果循环出现了,比如abab,那就可以表示成(ab)2。还有一点,就是要使得n尽量大,那么当...
分类:
其他好文 时间:
2015-07-28 00:39:54
阅读次数:
134
package?main
import?(
"fmt"
"log"
"net/http"
"strings"
)
func?sayhelloName(w?http.ResponseWriter,?r?*http.Request)?{
r.ParseForm()
fmt.Println(r.Form)
fmt.Println("path",?r.URL.Pat...
分类:
Web程序 时间:
2015-07-27 15:11:30
阅读次数:
213