题解列表

筛选

计算2的n次方

摘要:解题思路:只是随手一做,有很多不好的地方,请谅解注意事项:注意时间复杂度参考代码:#include<stdio.h>#include<iostream>using namespace std;int ……

关于数字的处理与判断

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){   string n;    cin >> n;    in……

P1002(C++)结构体,自定义排序

摘要:解题思路:定义结构体+结合sort排序+自定义类型排序注意事项:两个获得奖金一致时,按输入顺序输出先输入的参考代码:#include <iostream>#include <algorithm>usi……

P1001C++排序+素数

摘要:解题思路:就一个排序(直接使用sort即可)和判定素数注意事项:参考代码:#include <iostream>#include <string>#include <algorithm>using n……

自定义函数之数字分离

摘要:解题思路:定义一个函数分解并输出即可。注意事项:注意分解方法。参考代码:#include<bits/stdc++.h> using namespace std; void print(int n)……

bfs-大胖子走迷宫

摘要:下方注释那地儿的判断条件不加在蓝桥oj没啥问题,但在这会超时 吐槽一句,蓝桥给的解析甚至过不了自己的oj ```cpp #include using namespace std; typed……

前缀和思想

摘要:注意事项:    if(ans < 0) ans = 0;  //当ans<0时,如果继续包括前边子矩阵,结果肯定是减小的,所以直接舍弃前边子矩阵参考代码:#include using names……