编写题解 2973: 出现次数超过一半的数 摘要:解题思路:先计数排序 再判断注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=…… 题解列表 2024年07月22日 0 点赞 0 评论 209 浏览 评分:9.9
判断数正负 摘要:解题思路:注意事项:参考代码:N = int(input())if N > 0: print("positive")elif N == 0: print("zero")elif N < 0…… 题解列表 2024年07月22日 0 点赞 0 评论 472 浏览 评分:0.0
用快读scanf别用cin 摘要:解题思路:/*带权并查集模板*/注意事项:参考代码:#include<bits/stdc++.h>typedef long long ll;using namespace std;int fa[100…… 题解列表 2024年07月21日 0 点赞 0 评论 281 浏览 评分:0.0
猴子吃桃的问题 摘要:解题思路:倒退回去算,思路为: 现在桃子数量 = (现在桃子数量 + 1) * 2;注意事项:按题目的来,第10天没吃。所以有3070个桃子是错的。参考代码:#include <iostream…… 题解列表 2024年07月21日 0 点赞 0 评论 242 浏览 评分:9.9
编写题解 2881: 图像相似度 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3;int a[N][N],b[N][N];int m…… 题解列表 2024年07月21日 0 点赞 0 评论 145 浏览 评分:9.9
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:计算从1到N之间所有“好数”的数量,并将这个数量打印出来。所谓“好数”是指那些其奇数位上的数字是奇数,偶数位上的数字是偶数的数。注意事项:确保 judge 函数的实现正确无误,特别是位数的计…… 题解列表 2024年07月21日 2 点赞 0 评论 646 浏览 评分:10.0
2883: 矩阵加法 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年07月21日 0 点赞 0 评论 229 浏览 评分:0.0
2974: 统计字符数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;using namespace std;const int N=1e6;ll t…… 题解列表 2024年07月21日 0 点赞 0 评论 231 浏览 评分:9.9
编写题解 2974: 统计字符数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5;stri…… 题解列表 2024年07月21日 0 点赞 0 评论 201 浏览 评分:9.9
编写题解 2749: Hello, World! 摘要:解题思路:注意事项:参考代码: #include<iosteam> using namespace std; &nb 题解列表 2024年07月21日 0 点赞 0 评论 563 浏览 评分:9.9