摘要: 1、五种数据结构 stinrg、list、set、hash、zset(有序列表) 2、有一些通用操作 DEL、TYPE、RENAME 结构类型: 结构存储的值 结构的读写能力 string: 字符串、整数、浮点数 对整个字符串或者字符串的其中一部分执行操作;对整数和浮点数执行自增或者自减操作 lis 阅读全文
posted @ 2020-11-07 12:01 进击的黑仔 阅读(73) 评论(0) 推荐(0) 编辑
摘要: To seek candies for Maomao, Dudu comes to a maze. There are nn rooms numbered from 11 to nn and mmundirected roads. There are two kinds of rooms in th 阅读全文
posted @ 2019-09-15 11:47 进击的黑仔 阅读(314) 评论(0) 推荐(0) 编辑
摘要: You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found 阅读全文
posted @ 2019-09-07 22:21 进击的黑仔 阅读(268) 评论(0) 推荐(1) 编辑
摘要: You may have wondered why most extraterrestrial life forms resemble humans, differing by superficial traits such as height, colour, wrinkles, ears, ey 阅读全文
posted @ 2019-09-07 22:13 进击的黑仔 阅读(208) 评论(0) 推荐(0) 编辑
摘要: The repetition number of a string is defined as the maximum number R such that the string can be partitioned into R same consecutive substrings. For e 阅读全文
posted @ 2019-09-07 22:06 进击的黑仔 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 题面就不弄了 题意:给你一个串,让你求出补充最少的字符形成的回文串 思路:思路很好想,就是对一个串,找其最后一个字符(第一个也行)和原串的反串的最长公共前缀,这样就求出了该串中的已有最长回文,然后把剩下部分 倒序添加到原串上即可。 也就是我们可以固定一个位置,即使反串的第一个单词(原串最后一个),然 阅读全文
posted @ 2019-09-07 21:48 进击的黑仔 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given a sequence, {A1, A2, ..., An} which is guaranteed A1 > A2, ..., An, you are to cut it into three sub-sequences and reverse them separately to fo 阅读全文
posted @ 2019-09-07 21:28 进击的黑仔 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Problem Description You have a directed weighted graph with n vertexes and m edges. The value of a path is the sum of the weight of the edges you pass 阅读全文
posted @ 2019-08-23 21:39 进击的黑仔 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 链接:http://codeforces.com/problemset/problem/632/C 思路:思路很快想到了,但是被sort坑了,对于sort的自定义比较函数,记住 对于相等的值一定要返回flase 附上别的大佬的验证:https://blog.csdn.net/xhu_eternalc 阅读全文
posted @ 2019-06-04 23:06 进击的黑仔 阅读(254) 评论(0) 推荐(0) 编辑
摘要: BaoBao has just found a rooted tree with n vertices and (n-1) weighted edges in his backyard. Among the vertices, m of them are red, while the others 阅读全文
posted @ 2019-05-20 23:58 进击的黑仔 阅读(326) 评论(0) 推荐(0) 编辑