题解列表

筛选

C语言训练-数字母 (C++代码)

摘要:解题思路:写个判断函数 判断字符串是否是字符 注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    char str……

DNA (C语言代码)

摘要:解题思路:先打印第一行后面每组打印都少第一段注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){    int t;    scanf("%……

迷宫问题 (C++代码)

摘要:解题思路:宽度优先搜索的常规题注意事项:需要注意判断:如果不存在通路需要返回-1(否则只能过50%,存在一半的数据);参考代码:#include <iostream>#include <algorit……

老王赛马 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sum;int a[1050],b[1050];void sort(int c[],int n){ int i,j,k; for……

回文串 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int f(char a[]){ int i,j,k; k=strlen(a); for(i=0,j……