题解列表

筛选

1043:三个数字排序题解

摘要:解题思路:运用选择排序注意事项:交换的三行代码:t=a;a=b;b=t;参考代码:#include<stdio.h>int main(){    int a,b,c,t;    scanf("%d%d……

射击游戏c++题解

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef int I;#define X(A,B) (A[B[0]][B[1]][B[2……

1128: C语言训练-排序问题<1>

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #define N 4 void bubblesort(int a[],int n);……

Dotcpp 编译器 与 VScode 编译器下的不同结果

摘要:解题思路:    字符串本身数组也没多大差别,就一个 &#39;\0&#39;    先输入字符串的个数,清除缓冲区,通过 for 循环输出数组,输出从第几位开始输出注意事项:    VScode 的……

1096: Minesweeper 通俗易懂简单C++

**解题思路**:寻找地雷,在地雷周围一圈的数字上+1.```cpp#include//万能头文件usingnamespacestd;intk=0;//用于记录次数voidfak(intz,intx);intmain(){intz,x;while(cin>>z>>x){k++;//计算次数if(z==

蓝桥杯2019年第十届省赛真题-外卖店优先级

#####思路:把每个时间中所有的订单插入到以当前时间为头节点的链表中,然后按时间顺序进行遍历每个链表进行处理```#includeusingnamespacestd;constintN=100010;intpriority[N];inth[N],

题解 1017: [编程入门]完数的判断

摘要:解题思路:用for循环遍历N以内的所有数字,用一个函数来判断是否是完数。参考代码:#include<stdio.h> #include<string.h> #define max 1005 in……