蓝桥杯2022年第十三届决赛真题-最大数字 摘要:解题思路:位数相同的数字大小关系取决于不同最高位的大小有关,所以我们可以先找从最高位到低位最多有多少位可以变成9观察数据发现数字n最多是1E17,也就是17位用dfs不会超时对于剩余的A和B操作次数B…… 题解列表 2024年05月23日 0 点赞 0 评论 372 浏览 评分:10.0
无聊的星期六 摘要:size=int(input()) num=list(map(int,(input().split()))) num.sort() print(",".join(str(i) for i in …… 题解列表 2024年05月25日 0 点赞 0 评论 302 浏览 评分:10.0
1039-宏定义闰年判断c++ 摘要:原题链接:[https://www.dotcpp.com/oj/problem1039.html](https://www.dotcpp.com/oj/problem1039.html) 参考代…… 题解列表 2024年05月26日 0 点赞 0 评论 447 浏览 评分:10.0
编写题解 2879: 错误探测 摘要:```c #include int main() { //i,j用来控制循环,count:每行或每列1的个数 int n,nums[100][100]={0},i,j,cou…… 题解列表 2024年05月27日 1 点赞 0 评论 325 浏览 评分:10.0
java--study||O.o 摘要:模拟参考代码: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamRead…… 题解列表 2024年05月28日 0 点赞 0 评论 229 浏览 评分:10.0
蓝桥杯2022年第十三届省赛真题-求和(c语言) 摘要:解题思路:按照a2*a1+a3*(a1+a2)+a4*(a1+a2+a3)+....+an*(a1+a2+a3+...+a(n-1))进行的计算注意事项:参考代码:#include <stdio.h>…… 题解列表 2024年06月01日 3 点赞 0 评论 482 浏览 评分:10.0
编写题解 3020: 最大数位置 摘要:```c #include int main() { int nums[1000],num,i,max=-1,index=0; scanf("%d",&num); for(i=…… 题解列表 2024年06月03日 4 点赞 0 评论 680 浏览 评分:10.0
2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1000;ll a…… 题解列表 2024年06月09日 0 点赞 0 评论 173 浏览 评分:10.0
记忆化搜索(dfs+字典)(dfs+剪枝) 摘要:解题思路: 一层循环线性遍历,vis用于去重,mp用于局部去重注意事项: 目前 dotcpp 官方测评数据存在问题参考代码:错解(目前可通过 dotcpp 所有测试样例)#include <bits/…… 题解列表 2024年06月11日 3 点赞 0 评论 542 浏览 评分:10.0
蓝桥杯2024年第十五届省赛真题-传送阵 摘要:``` #include #define int long long using namespace std; const int N = 1e6+10; int t; int p…… 题解列表 2024年06月15日 4 点赞 0 评论 1355 浏览 评分:10.0