输入输出--第二个数字 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3]; for (int i = 0; i < 3; i+…… 题解列表 2022年03月11日 0 点赞 0 评论 330 浏览 评分:0.0
1098: 陶陶摘苹果 摘要:解题思路:估计原题是中等题,这个是阉割版,完全没有算法可言。注意事项:找找原题吧。参考代码:#include <iostream> using namespace std; const i…… 题解列表 2022年03月11日 0 点赞 0 评论 401 浏览 评分:9.0
C语言,不用库函数,标注较为清晰,冒泡排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//冒泡排序方法int main(){ int i,a[10]; for(i=0;i<3;i++)//现在数组里输入三个数 { sca…… 题解列表 2022年03月11日 0 点赞 0 评论 735 浏览 评分:0.0
二级C语言-进制转换(数组) 摘要:解题思路:不断%8将值放到数组中,最后逆序输出注意事项:if的取值范围,应该是小于8而不是小于等于8参考代码:#include<stdio.h>int main(){ int a[100],n,…… 题解列表 2022年03月11日 0 点赞 0 评论 440 浏览 评分:0.0
猴子吃桃问题,C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>/*猴子吃桃问题。猴子第一天摘下若干个桃子,当即吃了一半,还不过瘾,又多吃了一个。 第二天早上又将剩下的桃子吃掉一半,又多吃一个。 以…… 题解列表 2022年03月11日 0 点赞 0 评论 1295 浏览 评分:0.0
优质题解 1096: Minesweeper 摘要:解题思路:说是黄金矿工,其实是扫雷的逻辑。没有什么算法上的难点,花时间的地方在于输出的数组里既有'*'又有数字,而我定义的数组是int型,所以一开始的想法是用static_cast把有…… 题解列表 2022年03月11日 0 点赞 1 评论 744 浏览 评分:8.7
1697: 数据结构-二叉链表存储的二叉树 摘要:题目源: [https://www.dotcpp.com/oj/problem1697.html](https://www.dotcpp.com/oj/problem1697.html) 代码都…… 题解列表 2022年03月11日 0 点赞 0 评论 597 浏览 评分:0.0
1507: 蓝桥杯算法提高VIP-去注释 摘要:解题思路:注意事项:参考代码:s=0 while True: try: st=input() if '/*' in st:   题解列表 2022年03月11日 0 点赞 0 评论 468 浏览 评分:8.0
我是废物!!!!!!!!!!!!!! 摘要: ```cpp #include using namespace std; int n; const long long L = 100002; int arr[L] = {0…… 题解列表 2022年03月11日 0 点赞 0 评论 327 浏览 评分: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 评论 532 浏览 评分:9.9