桶排序思想 求解打水问题 摘要:解题思路:首先我们先把每个人打水时间从小到大排序 其次确定每只水龙头最多可以有多少人排队 依次把这些从小到大的时间放到每个水龙头。注意事项: 计算每个水龙头的等待时间,最后一个人的不用加,其次第三…… 题解列表 2023年03月16日 0 点赞 0 评论 599 浏览 评分:0.0
校门外的树(C++简单代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long L,M,sum=0,a[1000…… 题解列表 2023年03月16日 1 点赞 0 评论 503 浏览 评分:0.0
陶陶摘苹果C++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[10],sum=0; for…… 题解列表 2023年03月16日 0 点赞 0 评论 559 浏览 评分:0.0
1821: 蓝桥杯2014年第五届真题-拼接平方数 #include#include#include#include#include#include#include#include#includeusingnamespacestd;mapsqu;boolcheck(intn){intk=10;while(n/k){if(squ[n%k]&&squ[n/ 题解列表 2023年03月16日 0 点赞 0 评论 654 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-整数拼接 解题思路:预处理每个数乘以10的1~10的次方,并且对k取模,存在nums[N][11]内,从1~n遍历一遍输入的数据(nums[i]放在后面,这次遍历已经包括所有组合了),把以Ai的位数和(k-nums2[i]%k)%k为下标的数据加起来, 题解列表 2023年03月16日 0 点赞 0 评论 1104 浏览 评分:9.7
1454: 蓝桥杯历届试题-蚂蚁感冒——纯模拟 #include#include#include#include#include#include#includeusingnamespacestd;intmain(){intn;cin>>n;inta[n][2];for(inti=0;i>a[i][0];}a[0][1]=1;while(true){ 题解列表 2023年03月16日 0 点赞 0 评论 634 浏览 评分:0.0
利用绝对坐标解题 解题思路:利用绝对坐标,东西方向只有x轴变化,其他4个方向则是x变化0.5,y变化1,xy的方向是可以直接由d的值计算出来的,将它存在x和y的数组里(参考下面的代码)。因为在y轴方向上的移动不是平行于y轴的,所以每次在y轴方向上移动1都会附带的在x轴上移动0.5, 题解列表 2023年03月16日 0 点赞 0 评论 1069 浏览 评分:9.9
编写题解 1039: 宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) if(y%4==0&&y%100!=…… 题解列表 2023年03月16日 0 点赞 0 评论 492 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-网络分析 摘要:解题思路:并查集加懒惰标记注意事项:注意标记清零。参考代码:#include<iostream> #include<unordered_map> #include<vector> #includ…… 题解列表 2023年03月16日 0 点赞 0 评论 774 浏览 评分:9.9