蓝桥杯2022年第十三届省赛真题-重复的数 摘要:解题思路:离线处理(若一边读一边实时处理则为在线处理),分块思想。注意事项:不要超时参考代码:#include <iostream> #include <vector> #include <set…… 题解列表 2023年04月05日 2 点赞 0 评论 799 浏览 评分:9.9
与2无关的数——python 摘要:解题思路:注意事项:参考代码:def bxg(n): if '2' in str(n) or n%2 == 0: return 0 else: …… 题解列表 2023年04月05日 0 点赞 0 评论 362 浏览 评分:0.0
谁是你的潜在朋友 摘要:解题思路:注意事项:参考代码:while True: try: n,m = map(int,input().split()) L = [int(input()) fo…… 题解列表 2023年04月05日 0 点赞 0 评论 285 浏览 评分:0.0
字符串连接——python 摘要:解题思路:注意事项:参考代码:while True: try: a,b = map(str,input().split()) print(a+b) except…… 题解列表 2023年04月05日 0 点赞 0 评论 332 浏览 评分:0.0
后缀子串排序——python 摘要:解题思路:注意事项:参考代码:while True: try: L = input() L2 = [] for i in range(len(L)): …… 题解列表 2023年04月05日 0 点赞 0 评论 341 浏览 评分:0.0
求最大值——python 摘要:解题思路:注意事项:参考代码:while True: try: L = list(map(int,input().split())) print(f"max={max…… 题解列表 2023年04月05日 0 点赞 0 评论 300 浏览 评分:0.0
预处理+二分+单调队列求区间最值 摘要:本体思路 1.预处理矩阵O(N^2 M) 2.枚举行O(N^2),二分矩阵的宽度(log(M)) 3.单调队列求区间最大最小值 O(M) 总的时间复杂度为 O(N N M log M) 空…… 题解列表 2023年04月05日 0 点赞 0 评论 532 浏览 评分:0.0
c++题解,简短 摘要:每加入一条直线,增加的面是交点的个数+1,还有要注意的是重合的线,和平行的线要特别处理一下 ```cpp #include using namespace std; #define ll …… 题解列表 2023年04月05日 0 点赞 0 评论 617 浏览 评分:10.0
数字处理与判断 摘要:##字符串String类的应用 *length()返回长度; charAt()调到指定位置** ## Java代码 - #### 话不多说,上代码 import…… 题解列表 2023年04月04日 0 点赞 0 评论 809 浏览 评分:9.9
蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))st=[0]*nflag=0cnt=0while flag==0: fo…… 题解列表 2023年04月04日 0 点赞 0 评论 323 浏览 评分:0.0