C语言训练-求矩阵的两对角线上的元素之和 (C语言代码) 摘要:解题思路:注意事项:奇数矩阵时。多加了一个 参考代码:#include <stdio.h>int main (){ int x,a[10][10]; int i,j,sum; …… 题解列表 2018年07月30日 0 点赞 0 评论 837 浏览 评分:0.0
C语言训练-数字母 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int count=0;int main (){ int i; char s[1000]; gets(s); for…… 题解列表 2018年07月30日 0 点赞 0 评论 1447 浏览 评分:0.0
C语言训练-最大数问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int max,x; scanf("%d",&x); max=x; while(scanf("%d",&x)…… 题解列表 2018年07月30日 0 点赞 0 评论 1507 浏览 评分:0.0
蓝桥杯历届试题-最大子阵 (C++代码) 摘要:解题思路: 二维压缩成一维的最大子段,枚举。参考代码:#include<bits/stdc++.h> #define Inf 0x3F3F3F3F using namespace s…… 题解列表 2018年07月30日 0 点赞 0 评论 2041 浏览 评分:0.0
可 AC(C语言代码) 摘要:解题思路: 注意事项: 比较简单,看解析即可;注意解析中的数组均为逆序存储 参考代码: #include<stdio.h> #include<math.h> v…… 题解列表 2018年07月31日 1 点赞 2 评论 644 浏览 评分:0.0
字符排列问题 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int count,n,book[21]; char str[21]; int …… 题解列表 2018年07月31日 1 点赞 0 评论 1867 浏览 评分:0.0
数据结构-KMP算法中的模式串移动数组 (C语言代码)福利 解题思路:KMP算法就是掌握next数组的实现过程附视频教程:https://www.bilibili.com/video/av2975983/?p=39注意事项:next[]数组和T数组,下标1为第一个元素#include#include#include 题解列表 2018年07月31日 0 点赞 0 评论 2168 浏览 评分:0.0 蓝桥杯2016年第七届真题-路径之谜 (C++代码) 摘要:解题思路: 参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 23; int Map…… 题解列表 2018年07月31日 0 点赞 0 评论 2373 浏览 评分:0.0 数据结构-KMP字符串模式匹配算法实现 (C语言代码) 摘要:解题思路:注意事项:T S next 都是从第一个元素开始参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> void…… 题解列表 2018年11月06日 2 点赞 0 评论 2064 浏览 评分:0.0 C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:最大公约数,把最大的那个数赋值给max,然后往下除。最小公倍数的话,用两数乘积除以最大公约数注意事项:判断条件参考代码:#include<stdio.h>int main() { int n…… 题解列表 2018年07月31日 0 点赞 0 评论 1358 浏览 评分:0.0 « 12...3199320032013202320332043205...59075908 »
蓝桥杯2016年第七届真题-路径之谜 (C++代码) 摘要:解题思路: 参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 23; int Map…… 题解列表 2018年07月31日 0 点赞 0 评论 2373 浏览 评分:0.0
数据结构-KMP字符串模式匹配算法实现 (C语言代码) 摘要:解题思路:注意事项:T S next 都是从第一个元素开始参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> void…… 题解列表 2018年11月06日 2 点赞 0 评论 2064 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:最大公约数,把最大的那个数赋值给max,然后往下除。最小公倍数的话,用两数乘积除以最大公约数注意事项:判断条件参考代码:#include<stdio.h>int main() { int n…… 题解列表 2018年07月31日 0 点赞 0 评论 1358 浏览 评分:0.0