题解列表

筛选

嗨嗨嗨,来了喔!

摘要:解题思路:看代码注意事项:参考代码:#include <bits/stdc++.h>using namespace std;bool panduan(int n,int a[],int m){ for……

信息学奥赛一本通T1329-细胞

摘要:解题思路:BFS注意事项:参考代码:#include<iostream> #include<queue> using namespace std; const int N = 1e3 +10; ……

sort函数妙解数位排序

摘要:解题思路:在sort函数中添加优化的比较函数cmp注意事项:数组要比十万大一点参考代码:#include <iostream> #include<algorithm> using namespac……

不用循环,总共21行代码搞定!!

摘要: **本题的思路大致为先将给出的四个数字进行四选三的组合,再将选出来的三个数字进行排序,那么就有两种实现方案: (1)将给出的四个数字写进数组里,进行数组的循环挑选遍历; (2)将选出来的三个数……