C语言,不用库函数,标注较为清晰,冒泡排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//冒泡排序方法int main(){ int i,a[10]; for(i=0;i<3;i++)//现在数组里输入三个数 { sca…… 题解列表 2022年03月11日 0 点赞 0 评论 762 浏览 评分:0.0
二级C语言-进制转换(数组) 摘要:解题思路:不断%8将值放到数组中,最后逆序输出注意事项:if的取值范围,应该是小于8而不是小于等于8参考代码:#include<stdio.h>int main(){ int a[100],n,…… 题解列表 2022年03月11日 0 点赞 0 评论 463 浏览 评分:0.0
猴子吃桃问题,C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>/*猴子吃桃问题。猴子第一天摘下若干个桃子,当即吃了一半,还不过瘾,又多吃了一个。 第二天早上又将剩下的桃子吃掉一半,又多吃一个。 以…… 题解列表 2022年03月11日 0 点赞 0 评论 1317 浏览 评分:0.0
优质题解 1096: Minesweeper 摘要:解题思路:说是黄金矿工,其实是扫雷的逻辑。没有什么算法上的难点,花时间的地方在于输出的数组里既有'*'又有数字,而我定义的数组是int型,所以一开始的想法是用static_cast把有…… 题解列表 2022年03月11日 0 点赞 1 评论 763 浏览 评分:8.7
1697: 数据结构-二叉链表存储的二叉树 摘要:题目源: [https://www.dotcpp.com/oj/problem1697.html](https://www.dotcpp.com/oj/problem1697.html) 代码都…… 题解列表 2022年03月11日 0 点赞 0 评论 627 浏览 评分:0.0
1507: 蓝桥杯算法提高VIP-去注释 摘要:解题思路:注意事项:参考代码:s=0 while True: try: st=input() if '/*' in st:   题解列表 2022年03月11日 0 点赞 0 评论 496 浏览 评分:8.0
我是废物!!!!!!!!!!!!!! 摘要: ```cpp #include using namespace std; int n; const long long L = 100002; int arr[L] = {0…… 题解列表 2022年03月11日 0 点赞 0 评论 356 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量-题解 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a<b) …… 题解列表 2022年03月11日 0 点赞 0 评论 550 浏览 评分:9.9
1512: 蓝桥杯算法提高VIP-多项式输出 摘要:n=int(input()) a=list(map(int,input().split())) l=len(a) b=[] for i in range(len(a)): b.app…… 题解列表 2022年03月11日 0 点赞 0 评论 395 浏览 评分:0.0
1518: 蓝桥杯算法提高VIP-寻找三位数 摘要:解题思路:注意事项:参考代码:st=[str(i) for i in range(1,10)] ls=[] for i in st: z=st[:] z.remove(i) …… 题解列表 2022年03月11日 0 点赞 0 评论 313 浏览 评分:0.0