树状数组(注意身高为0) 摘要:```cpp #include using namespace std; typedef long long ll; #define lowbit(x) ((x)&-(x)) const i…… 题解列表 2022年03月16日 0 点赞 0 评论 442 浏览 评分:9.9
题解 2309: 蓝桥杯2019年第十届省赛真题-人物相关性分析-滑动窗口算法 摘要:解题思路: 常规思想:两个不定长数组,j下标从0开始Alice找Bob,时间超限55Bob运用数组方法:数组下标差的到的中间那段,找Bob为1的index有几个,然后相加,时间超限82滑动窗口算法思想…… 题解列表 2022年03月16日 0 点赞 0 评论 1101 浏览 评分:9.9
发工资了 贪心思路 摘要:解题思路:贪心算法 抓大张的拿注意事项:输出时换行参考代码:#include<stdio.h>int b[6]={100,50,10,5,2,1},a[1000];int main(){ int…… 题解列表 2022年03月16日 0 点赞 0 评论 688 浏览 评分:9.9
蛇行矩阵题解 摘要:解题思路:注意事项:参考代码:'''思路:先求出第一行后面就是a[i][j] = a[i-1][j+1]-1'''def dyh(n): a = …… 题解列表 2022年03月16日 0 点赞 0 评论 450 浏览 评分:9.9
用了一个链表的方法 摘要:解题思路:将数字串联起来注意事项:参考代码:#include<stdio.h>int main(){ int a[100],b[100]; …… 题解列表 2022年03月16日 0 点赞 0 评论 535 浏览 评分:9.9
有手就行(狗头) 摘要:### 解题思路: 找出每行的规律 第一行从2开始++,第二行从3开始++.....以此类推(行) 每行的第一个数从1开始++(列) ```java import java.util.…… 题解列表 2022年03月16日 0 点赞 1 评论 838 浏览 评分:9.9
蓝桥杯2016年第七届真题-密码脱落 摘要:解题思路:就是公共最长序列的模板套用注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int maxlen[1000][1000];int m…… 题解列表 2022年03月16日 0 点赞 0 评论 603 浏览 评分:9.9
1458: 蓝桥杯2013年第四届真题-错误票据(正常思维) 摘要:解题思路:1.录入数据到列表2.对列表进行排序,然后遍历列表到下标数组3.利用下标数组进行计数,为零的是缺少的,为2的是重复的注意事项:参考代码:a=int(input())List=[]while(…… 题解列表 2022年03月16日 0 点赞 0 评论 746 浏览 评分:9.9
[编程入门]二进制移位练习 摘要:```cpp #include #include #include using namespace std; vector arr; int a; int pos = 0; //化为二…… 题解列表 2022年03月16日 0 点赞 0 评论 522 浏览 评分:9.9