编写题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){int a; cin>>a;while(a!=1){ if(…… 题解列表 2024年05月21日 0 点赞 0 评论 246 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:将十张纸的长宽用数组来存参考代码: #include <iostream>using namespace std;int main(int argc, char *argv[]){ int …… 题解列表 2024年05月21日 0 点赞 0 评论 715 浏览 评分:9.9
机房,LCA+dp 摘要:解题思路:先求lca,在建树的过程中dp成型,最后算,我用的重链剖分求LCA注意事项:参考代码:#include<bits/stdc++.h>#define int long long#define …… 题解列表 2024年05月21日 1 点赞 0 评论 377 浏览 评分:0.0
自己的简单小思路,先找到那个值应该的位置,把循环分为两部分 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int a[9]; …… 题解列表 2024年05月20日 0 点赞 0 评论 197 浏览 评分:0.0
C++结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include<string>#include<vector> using namespa…… 题解列表 2024年05月20日 0 点赞 0 评论 362 浏览 评分:0.0
用dijkstra优先队列 摘要:#include #define int long long #define endl '\n' using namespace std; typedef pair PII; const…… 题解列表 2024年05月20日 0 点赞 0 评论 436 浏览 评分:9.9
1837: 蓝桥杯2015年第六届真题-机器人塔 C++代码 常规dfs爆搜 摘要:解题思路: m和n不大于500,即m+n <= 1000,所以最多不会超过50行。 定义dfs为 当前访问第i行第j个,需要输入的字符是c,由于定义是访问时输入,因此需要在…… 题解列表 2024年05月19日 1 点赞 0 评论 357 浏览 评分:9.9
和与乘积---详细注释 摘要:解题思路:见代码详细注释参考代码:#include<bits/stdc++.h> #define endl "\n" typedef long long ll ; using namespac…… 题解列表 2024年05月19日 0 点赞 0 评论 371 浏览 评分:9.9
深度优先搜索+栈区存储路线 摘要:解题思路:因为此题的地图大小只有5*5,数据量较小,因此我想也可以使用深度优先搜索枚举而且应该写起来也比宽度优先搜索简单。注意事项:只有输出的时候","后面还要加个空格。参考代码:/*最需要注意的是f…… 题解列表 2024年05月19日 0 点赞 0 评论 328 浏览 评分:9.9
1073: 弟弟的作业 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> # using namespace std; int main() { int a,…… 题解列表 2024年05月17日 1 点赞 0 评论 368 浏览 评分:9.9