
字符串处理
凛冬将散
这个作者很懒,什么都没留下…
展开
-
CodeForces - 363C Fixing Typos (字符串处理)
C. Fixing Typos time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Many modern text editors automatically check原创 2017-08-03 09:18:48 · 452 阅读 · 0 评论 -
UVA - 10082 WERTYU
题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1023 题意:输入错位的字符串,把它转化成正确的字符串输出 学习:一个‘\’是转义字符,两个是输出‘\\’; 思路:使用一个常量数组储存键盘,输入每个字符直接输出字符使用getchar();原创 2017-10-28 11:15:41 · 959 阅读 · 0 评论 -
UVA —1368 DNA Consensus String
题意:输入m个长度均为n的DNA序列,求一个DNA序列,到所有序列的总的Hamming距离尽量小。两个等长字符串的 Hamming距离等于字符不同的位置个数。 输入:m(4m个长度均为n的DNA序列 输出:m个序列的Hamming距离和最小的DNA序列和对应的距离。如有多解,要求为字典序最小的解。 字符串题,千万不要忘记在要输出的字符串后加'\0' #incl原创 2017-11-08 20:53:57 · 358 阅读 · 0 评论