蓝桥杯2016年第七届真题-路径之谜dfs 摘要:```cpp#includeusing namespace std;const int N=30;int n;int a[N],b[N];//西和北方向上的箭数 注意先西再北…… 题解列表 2025年02月20日 1 点赞 0 评论 675 浏览 评分:10.0
分数线划定 摘要:```cpp#include #include using namespace std;struct interviewer{ int number; int score;…… 题解列表 2025年02月20日 0 点赞 0 评论 530 浏览 评分:0.0
复习观看wwwwwwwwwwwwwww 摘要:#include#include#include#include#include#includeusing namespace std;int main(){ in…… 题解列表 2025年02月20日 0 点赞 0 评论 387 浏览 评分:0.0
有坑,a后面的数还要输出 解题思路:注意事项:参考代码:#includeusingnamespacestd;constintt=1e6;inta[t],b[t]={0};voidadd(inta[],intm,intb[],intn){intx=m;for(inti=0;i 题解列表 2025年02月20日 0 点赞 0 评论 412 浏览 评分:0.0 ASCII字符和数字之间的转换 摘要:解题思路: 在 C 语言中,字符常量可以直接作为整数参与运算,因为它在内存中存储的就是对应的 ASCII 码值。同样,一个整数也可以作为字符…… 题解列表 2025年02月20日 2 点赞 0 评论 1073 浏览 评分:0.0 拆分位数问题——利用取余 摘要:解题思路:得到各位数的数字,可以利用取余来获得。注意事项:参考代码:#include<iostream>using namespace std;int main(){ …… 题解列表 2025年02月20日 0 点赞 0 评论 942 浏览 评分:0.0 [信息学奥赛一本通T1487-北极通讯网络] - DFS求连通块 +二分答案 或 Kruskal 摘要:## DFS求连通块 +二分答案```cpp#include // #define int long long // 仅在需要大整数时使用,memset 数组为 0x3f 时去掉#de…… 题解列表 2025年02月19日 1 点赞 0 评论 422 浏览 评分:0.0 [信息学奥赛一本通T1488-新的开始] - 虚拟原点求最小生成树 摘要:```cpp#include #define int long long // 仅在需要大整数时使用,memset 数组为 0x3f 时去掉#define INF 0x3f3f3f3f…… 题解列表 2025年02月19日 0 点赞 0 评论 443 浏览 评分:0.0 贪心,选出前m个最大翻转可增加的值 解题思路:注意事项:参考代码:#include#include#include#include#includeusingnamespacestd;typedeflonglongll;constintN=1010; 题解列表 2025年02月19日 1 点赞 1 评论 1266 浏览 评分:10.0 [连接格点(grid)] - Kruskal 摘要:### 先跑横向再跑纵向```cpp#include #define int long long // 仅在需要大整数时使用,memset 数组为 0x3f 时去掉#define …… 题解列表 2025年02月19日 0 点赞 0 评论 485 浏览 评分:0.0 « 12...76777879808182...16491650 »
ASCII字符和数字之间的转换 摘要:解题思路: 在 C 语言中,字符常量可以直接作为整数参与运算,因为它在内存中存储的就是对应的 ASCII 码值。同样,一个整数也可以作为字符…… 题解列表 2025年02月20日 2 点赞 0 评论 1073 浏览 评分:0.0
拆分位数问题——利用取余 摘要:解题思路:得到各位数的数字,可以利用取余来获得。注意事项:参考代码:#include<iostream>using namespace std;int main(){ …… 题解列表 2025年02月20日 0 点赞 0 评论 942 浏览 评分:0.0
[信息学奥赛一本通T1487-北极通讯网络] - DFS求连通块 +二分答案 或 Kruskal 摘要:## DFS求连通块 +二分答案```cpp#include // #define int long long // 仅在需要大整数时使用,memset 数组为 0x3f 时去掉#de…… 题解列表 2025年02月19日 1 点赞 0 评论 422 浏览 评分:0.0
[信息学奥赛一本通T1488-新的开始] - 虚拟原点求最小生成树 摘要:```cpp#include #define int long long // 仅在需要大整数时使用,memset 数组为 0x3f 时去掉#define INF 0x3f3f3f3f…… 题解列表 2025年02月19日 0 点赞 0 评论 443 浏览 评分:0.0
贪心,选出前m个最大翻转可增加的值 解题思路:注意事项:参考代码:#include#include#include#include#includeusingnamespacestd;typedeflonglongll;constintN=1010; 题解列表 2025年02月19日 1 点赞 1 评论 1266 浏览 评分:10.0
[连接格点(grid)] - Kruskal 摘要:### 先跑横向再跑纵向```cpp#include #define int long long // 仅在需要大整数时使用,memset 数组为 0x3f 时去掉#define …… 题解列表 2025年02月19日 0 点赞 0 评论 485 浏览 评分:0.0