![](https://img-blog.csdnimg.cn/20200416100020807.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
❤❤❤字符串❤❤❤
字符串
Mongo_girl
哈哈哈哈哈哈哈哈
展开
-
PAT (Advanced Level) Practice — 1152 Google Recruitment (20 分)
题目链接:https://pintia.cn/problem-sets/994805342720868352/problems/1071785055080476672In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) f...原创 2019-02-27 09:22:33 · 391 阅读 · 0 评论 -
PAT (Advanced Level) Practice — 1136 A Delayed Palindrome (20 分)
题目链接:https://pintia.cn/problem-sets/994805342720868352/problems/994805345732378624Consider a positive integer N written in standard notation with k+1 digits ai as ak⋯a1a0 with 0≤ai<...原创 2019-02-27 08:01:37 · 138 阅读 · 0 评论 -
c语言 字符串
字符串以0(整数0)结尾的⼀串字符 0或’\0’是⼀样的,但是和’0’不同 0标志字符串的结束,但它不是字符串的⼀部分 计算字符串⻓度的时候不包含这个0 字符串以数组的形式存在,以数组或指针的形式访问,更多的是以指针的形式 string.h ⾥有很多处理字符串的函数字符串变量• char *str = “Hello”;• char word[] = “Hello”;• c...原创 2019-01-21 19:40:41 · 144 阅读 · 0 评论 -
c语言 字符串函数
putchargetcharstrlenstrcmpstrcpystrcatputchar• int putchar(int c);• 向标准输出写⼀个字符• 返回写了⼏个字符,EOF(-1)表⽰写getchar• int getchar(void);• 从标准输⼊读⼊⼀个字符• 返回类型是int是为了返回EO• Windows—>Ctrl-Z ...原创 2019-01-21 21:40:04 · 174 阅读 · 0 评论 -
zufeoj_3509: Vigenère密码
题目链接:http://acm.ocrosoft.com/problem.php?id=3509 题目描述16世纪法国外交家Blaise de Vigenère设计了一种多表密码加密算法——Vigenère密码。Vigenère 密码的加密解密算法简单易用,且破译难度比较高,曾在美国南北战争中为南军所广泛使用。在密码学中,我们称需要加密的信息为明文,用M表示;称加密后的信息为密文,...原创 2018-07-10 17:08:26 · 253 阅读 · 0 评论 -
PAT (Advanced Level) Practice — 1100 Mars Numbers (20 分)
题目链接:https://pintia.cn/problem-sets/994805342720868352/problems/994805367156883456People on Mars count their numbers with base 13:Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Ea...原创 2019-02-13 09:39:24 · 211 阅读 · 0 评论 -
KMP算法
KMP字符串匹配算法(KMP substring search)相关概念:主串(text)模式串(pattern);指针i指示主串,指针j指示模式串知识要点:了解字符串的前后缀;next数组的求解;根据next数组进行快速匹配串的模式匹配:求子串(模式串)在主串中的位置简单模式匹配算法【时间复杂度O(m*n)】由主串的第一个字符和模式串的第1个字符开始比较,若相等,则i、j指针...原创 2019-06-29 11:03:46 · 451 阅读 · 0 评论