A+B for Input-Output Practice题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int a, n, sum = 0, m; cin >>…… 题解列表 2021年09月23日 0 点赞 0 评论 463 浏览 评分:0.0
带头结点的单链表删除元素 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>typedef int ElemType;typedef struct LNode{ El…… 题解列表 2021年09月23日 0 点赞 0 评论 940 浏览 评分:9.9
链表,逆序创建单链表,在带头结点的单链表中进行删除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>typedef int ElemType;typedef struct LNode{ El…… 题解列表 2021年09月23日 0 点赞 0 评论 735 浏览 评分:0.0
Ikaros-第一个HelloWorld程序 摘要:解题思路:简单的就输出就可以参考代码:#include<iostream>using namespace std;int main(){ cout<<"*********************…… 题解列表 2021年09月22日 0 点赞 0 评论 1068 浏览 评分:6.0
蛇形矩阵,不用数组,直接打印版(c++语言实现) 摘要:解题思路: 在纸上画方格,写出数字矩阵,找规律注意事项: 这里值得注意的是题目要求的输出格式,最后一位不能有空格参考代码:#include <iostream> using namesp…… 题解列表 2021年09月22日 0 点赞 0 评论 703 浏览 评分:9.9
射击游戏c++题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef int I;#define X(A,B) (A[B[0]][B[1]][B[2…… 题解列表 2021年09月21日 0 点赞 0 评论 1405 浏览 评分:8.4
1096: Minesweeper 通俗易懂简单C++ **解题思路**:寻找地雷,在地雷周围一圈的数字上+1.```cpp#include//万能头文件usingnamespacestd;intk=0;//用于记录次数voidfak(intz,intx);intmain(){intz,x;while(cin>>z>>x){k++;//计算次数if(z== 题解列表 2021年09月20日 0 点赞 0 评论 769 浏览 评分:9.9
蓝桥杯2019年第十届省赛真题-外卖店优先级 #####思路:把每个时间中所有的订单插入到以当前时间为头节点的链表中,然后按时间顺序进行遍历每个链表进行处理```#includeusingnamespacestd;constintN=100010;intpriority[N];inth[N], 题解列表 2021年09月20日 0 点赞 0 评论 701 浏览 评分:0.0
简单数组移位和sort函数的运用 解题思路:定义2个一维数组(简单方便)或者利用左移从左往右,右移从右往左去移动数组,详见下代码。找到数组中第一个比你大的数组下标,然后移动数组即可。注意事项:break及时退出循环。参考代码:#includeusingnamespacestd;inta[15];intb[15];intmain(){i 题解列表 2021年09月20日 0 点赞 0 评论 1180 浏览 评分:9.9
自定义函数求复杂阶乘 摘要:解题思路:注意事项:【注意】1、申请函数形参时要注意 :x 为 double 类型, n 为 int 类型。 2、题目要求保留4位小数:用c++头文件<iomanip>#i…… 题解列表 2021年09月19日 0 点赞 1 评论 790 浏览 评分:9.9