题解列表

筛选

回文串思路和参考代码(C语言)

解题思路:首先注意到字符串长度小于255,所以我们定义一个255个存储单元的数组即可,然后用scanf读入字符串,strlen函数得到字符个数,最后for循环判断。注意事项:参考代码:#include#includeintmain(){charsen[255];i

DNA简单题解

摘要:#include<iostream>using namespace std;struct DNA{    int a;//行数    int b;//重复度};int main(){    int n……