2685: 蓝桥杯2022年第十三届省赛真题-蜂巢 摘要:解题思路:建立新的坐标系,转换坐标,判断距离图中坐标只是表示每个六边形的相对位置,不要理解成几何中心的平面坐标!注意事项:关键在于如何建一个坐标系使得方便判断距离参考代码:d1,p1,q1,d2,p2…… 题解列表 2023年04月04日 2 点赞 1 评论 834 浏览 评分:4.7
蓝桥杯2023年第十四届省赛真题-平均 摘要:解题思路:对于每个数的权重都存在一个数组中,数组从小到大排序,取前k个多余的最小权重的位置进行替换即可,用空间换时间注意事项:数组内有零值,需要遍历找到非0值参考代码:import java.io.B…… 题解列表 2023年04月15日 0 点赞 0 评论 1082 浏览 评分:4.7
tarjan算法求lca 摘要:# 代码 ```cpp #include #include #include #include #include #include #include #include …… 题解列表 2023年04月19日 0 点赞 0 评论 905 浏览 评分:4.7
自然数的拆分DFS 摘要:```cpp #include using namespace std; int n,d[9999999]; void dfs(int x,int c) //x表示的是已经找出…… 题解列表 2023年05月05日 0 点赞 0 评论 694 浏览 评分:4.7
python 知识点:字符统计 简单易懂 摘要:解题思路:学习python第一天注意事项: python的在线编译器用不了参考代码:# 字符串的统计 str.count('字符串') 输出为int类型的个数str=input()a0…… 题解列表 2023年07月11日 0 点赞 1 评论 480 浏览 评分:4.7
2758: 打印ASCII码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char a ; cin>>a ; co…… 题解列表 2023年07月13日 0 点赞 0 评论 636 浏览 评分:4.7
鸡你太美:坤坤三角 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){ in…… 题解列表 2023年07月21日 0 点赞 0 评论 383 浏览 评分:4.7
牛吃牧草(六年级天天写) 摘要:解题思路:小学题目 你不能不会吧注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; c…… 题解列表 2023年07月31日 1 点赞 0 评论 1352 浏览 评分:4.7
1332: 津津的储蓄计划 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[12];//每个月的预算 int i; for(i=0;i<12;i++) { scanf("%…… 题解列表 2023年08月03日 0 点赞 1 评论 377 浏览 评分:4.7
函数求整数平均值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int ave(int a[],int n){ int sum=0; for(int…… 题解列表 2023年08月07日 0 点赞 0 评论 414 浏览 评分:4.7