1053: 二级C语言-平均值计算 摘要:解题思路:建一个大小为10个int的数组,用for循环存放输入数据以及比较大小。注意事项:我把输入数据当成是有序的了,花了十分钟找bug,也是醉了。参考代码:#include <iostream> …… 题解列表 2022年03月09日 0 点赞 0 评论 2156 浏览 评分:8.7
编写题解 1113: C语言考试练习题_保留字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int m,j=0; char str1[81],str2[81]; get…… 题解列表 2022年03月09日 0 点赞 0 评论 310 浏览 评分:0.0
兰顿蚂蚁 C++ 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <map> #include <string> using namespace std; int dy[…… 题解列表 2022年03月09日 0 点赞 0 评论 318 浏览 评分:0.0
做题记录2022.3.9(ac:100%) 摘要:解题思路:两种方向:从a到b的范围内取数,然后分割判断该数是否符合要求,这样会存在一些冗余判断,但实现起来较为简单先生成平方数,然后在所给定的范围内拼接出符合要求的数,完全没有冗余,但考虑情况较多.如…… 题解列表 2022年03月09日 0 点赞 0 评论 465 浏览 评分:0.0
1708: 数据结构-最短路径算法 摘要:解题思路:注意事项:参考代码:n,s=map(int,input().split()) dp=[] for i in range(n): dp.append(list(map(int,i…… 题解列表 2022年03月09日 0 点赞 1 评论 369 浏览 评分:0.0
蓝桥杯2017年第八届真题-分考场 图的染色 DFS,一步一注释 摘要:```cpp #include #include using namespace std; int n, m; int G[105][105]; int KC[105][105]; in…… 题解列表 2022年03月09日 0 点赞 0 评论 509 浏览 评分:9.9
DNA(关键还是要找规律) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int n; int a,b; int c; scanf("%d",&n); for(int i=1;i<=n…… 题解列表 2022年03月09日 0 点赞 0 评论 352 浏览 评分:0.0
两种方法找最小公倍数,非常简单清晰 摘要: #include void main() { int a = 0; int b = 0; while (scanf("%d %d", …… 题解列表 2022年03月09日 0 点赞 0 评论 762 浏览 评分:9.9
编写题解 1116: IP判断 摘要:解题思路:split可以设定分隔符,非常好用。注意事项:参考代码:while True: l = input().split('.') if l == 'E…… 题解列表 2022年03月09日 0 点赞 0 评论 442 浏览 评分:8.0
用C语言征服十字图!!! 摘要:解题思路:本题的关键在于要理解题中的“3层十字架”是什么意思,然后我们通过观察图像来得到它的排布规律注意事项:1.十字架指的是由“.”构成的空白部分;2.图像的排布规律推荐从一层十字架看,然后再看看多…… 题解列表 2022年03月09日 1 点赞 0 评论 784 浏览 评分:9.9