校门外的树(C++简单代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long L,M,sum=0,a[1000…… 题解列表 2023年03月16日 1 点赞 0 评论 497 浏览 评分:0.0
陶陶摘苹果C++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[10],sum=0; for…… 题解列表 2023年03月16日 0 点赞 0 评论 558 浏览 评分: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 评论 650 浏览 评分: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 评论 1101 浏览 评分: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 评论 630 浏览 评分: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 评论 1066 浏览 评分: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 评论 489 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-网络分析 摘要:解题思路:并查集加懒惰标记注意事项:注意标记清零。参考代码:#include<iostream> #include<unordered_map> #include<vector> #includ…… 题解列表 2023年03月16日 0 点赞 0 评论 769 浏览 评分:9.9
自由下落的距离计算, 摘要:解题思路:我们把每次弹起来看做一次终点,每段即为M+M/2注意事项:注意最后一次并没有弹起来所以需要减去一个M;参考代码:自由下落的距离计算#include<bits/stdc++.h>using n…… 题解列表 2023年03月15日 0 点赞 0 评论 486 浏览 评分:0.0