题解列表

筛选

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

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

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

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

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

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

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

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

射击游戏c++题解

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

1043:三个数字排序题解

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

萌新:一个简单的完全背包问题

摘要:解题思路:注意事项:完全背包问题的状态转移方差:s[j]=max(s[j-w]+v,s[j])具体的max()函数的定义不能一概而论,要具体问题,具体思考参考代码:#include <iostream……

c语言解决问题

摘要:```c // 3*bottle->1 #include int main() { int m; while((scanf("%d",&m))!=0) { if(……