蓝桥杯2022年第十三届决赛真题-卡牌 摘要:注意事项:m记得开long long参考代码:#include<bits/stdc++.h> using namespace std; struct node { long long a; …… 题解列表 2024年05月22日 0 点赞 0 评论 784 浏览 评分:0.0
蓝桥杯2022年第十三届决赛真题-齿轮 摘要:解题思路:通过列出算式 q=a1/a2*a2/a3*a3......an-2/an-1*an-1/an发现可以约掉中间部分只剩下头尾得到q=a1/an阅读题目发现q为整数,那么可得 a1%an=0且a…… 题解列表 2024年05月22日 0 点赞 0 评论 755 浏览 评分:0.0
编写题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){int a; cin>>a;while(a!=1){ if(…… 题解列表 2024年05月21日 0 点赞 0 评论 454 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:将十张纸的长宽用数组来存参考代码: #include <iostream>using namespace std;int main(int argc, char *argv[]){ int …… 题解列表 2024年05月21日 0 点赞 0 评论 928 浏览 评分:9.9
机房,LCA+dp 摘要:解题思路:先求lca,在建树的过程中dp成型,最后算,我用的重链剖分求LCA注意事项:参考代码:#include<bits/stdc++.h>#define int long long#define …… 题解列表 2024年05月21日 1 点赞 0 评论 613 浏览 评分:0.0
自己的简单小思路,先找到那个值应该的位置,把循环分为两部分 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int a[9]; …… 题解列表 2024年05月20日 0 点赞 0 评论 414 浏览 评分:0.0
C++结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include<string>#include<vector> using namespa…… 题解列表 2024年05月20日 0 点赞 0 评论 549 浏览 评分:0.0
用dijkstra优先队列 #include#defineintlonglong#defineendl'\n'usingnamespacestd;typedefpairPII;constintN=1e6+10;intn,m;inte[N],w[N],ne[N],idx;inth[N], 题解列表 2024年05月20日 0 点赞 0 评论 731 浏览 评分:9.9
1837: 蓝桥杯2015年第六届真题-机器人塔 C++代码 常规dfs爆搜 摘要:解题思路: m和n不大于500,即m+n <= 1000,所以最多不会超过50行。 定义dfs为 当前访问第i行第j个,需要输入的字符是c,由于定义是访问时输入,因此需要在…… 题解列表 2024年05月19日 1 点赞 0 评论 612 浏览 评分:9.9
和与乘积---详细注释 摘要:解题思路:见代码详细注释参考代码:#include<bits/stdc++.h> #define endl "\n" typedef long long ll ; using namespac…… 题解列表 2024年05月19日 0 点赞 0 评论 665 浏览 评分:9.9