分考场—深度优先搜索 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; #define inf 0x3f3f3f3f //定义一个最…… 题解列表 2023年03月15日 0 点赞 0 评论 249 浏览 评分:0.0
编写题解 1442: 蓝桥杯2013年第四届真题-打印十字图 摘要: 纯暴力破解 找到所有顶点的位置,然后画边 一开始理解错了,n=3时是外包三层,我理解成了两层,所以后面的n换成了(n+1) #include #includ…… 题解列表 2023年03月15日 0 点赞 0 评论 327 浏览 评分:0.0
蓝桥杯2018年第九届真题-日志统计(排序 + 双指针) 摘要:####解题思路 1.把“点赞”日志按 ts 时间从小到大排序。 2.用 i 和 j 指针维护区间 [T, T+D) 。 3.记录区间 [T, T+D) 点赞数。 ####参考代码 ``…… 题解列表 2023年03月14日 0 点赞 0 评论 368 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数,递归 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int gcd(int m,int n){ if(m%n==0) return n…… 题解列表 2023年03月14日 0 点赞 0 评论 160 浏览 评分:0.0
c++二维数组的转置(最简单方法) 摘要:解题思路:a[0][0] a[0][1] a[0][2] a[1][0] a[1][1] a[1][2] &nb 题解列表 2023年03月14日 0 点赞 1 评论 208 浏览 评分:8.0
1268: 第K极值 摘要:```cpp #include using namespace std; const int maxn=10001; int n,k,arr[maxn],ans; string is_pre…… 题解列表 2023年03月14日 0 点赞 0 评论 483 浏览 评分:9.9
用vector容器 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<string>using namespace std;int main(){ vec…… 题解列表 2023年03月14日 0 点赞 0 评论 225 浏览 评分:0.0
时间显示--简短易理解 摘要:解题思路:既然不要求显示毫秒,那么最后毫秒的数值不影响我们要显示的时分秒,直接将其舍去即可;将所给的毫秒值转化为秒数值ps,然后对其分析:首先考虑要显示的秒数()因为秒数的取值范围是0-59,所以对 …… 题解列表 2023年03月14日 0 点赞 0 评论 206 浏览 评分:0.0
单词分析--实现代码 摘要:参考代码:#include <bits/stdc++.h> using namespace std; string s; int nu[27]; int main() { cin>>s…… 题解列表 2023年03月14日 0 点赞 0 评论 219 浏览 评分:6.5
第一次写题解,我觉得应该还是比较清晰 摘要:解题思路:解题思路简单,一个循环就搞定了;注意事项:主要要注意那个最后一段路程不用加(其实就是这个题目出的不严谨)参考代码:#include<iostream>#include<iomanip>usi…… 题解列表 2023年03月14日 0 点赞 0 评论 195 浏览 评分:0.0