题解 2701 取模C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> in…… 题解列表 2024年04月08日 4 点赞 0 评论 725 浏览 评分:0.0
矩阵转置,非常规的简单方法 摘要:解题思路:注意事项:参考代码:m,n = map(int,input().split()) num = [list(map(int,input().split())) for _ in range(…… 题解列表 2024年04月08日 0 点赞 0 评论 472 浏览 评分:0.0
蓝桥杯2020年第十一届国赛真题-答疑 C++ 排序 贪心 摘要:解题思路:在前面都选择花费总时间最少的 最后的答案一定是花费时间最少的注意事项:记得开 long long参考代码:#include<bits/stdc++.h>#define int long lo…… 题解列表 2024年04月08日 0 点赞 0 评论 593 浏览 评分:0.0
图像旋转,非常规的简单方法 摘要:解题思路:注意事项:参考代码:m,n = map(int,input().split()) num = [list(map(int,input().split())) for _ in range(…… 题解列表 2024年04月08日 0 点赞 0 评论 482 浏览 评分:0.0
只用if_else不用循环,注释详细 摘要:解题思路:用总刷题数除以一周的刷题总数,从而将天数问题转化为一个周期内的分段问题注意事项:注意分段做到不重不漏参考代码:#include<bits/stdc++.h> #define ll long…… 题解列表 2024年04月08日 2 点赞 0 评论 834 浏览 评分:10.0
特殊的质数肋骨(c语言) 解题思路:首位只能是{2,3,5,7}这四个数字,后面每一位都只能是{1,3,7,9},因此我从前往后的判断,比如2头,然后我循环判断2*10+1,2*10+3,2*10+7,2*10+9是否为质数,以此类推,以一个递归解决问题。注意事项:参考代码:#include#include 题解列表 2024年04月08日 1 点赞 0 评论 796 浏览 评分:10.0 3048: 抓住那头牛 摘要:解题思路: BFS: 三种移动方向 + 1, - 1, 2 * x注意事项:参考代码:#include<iostream> #include<cstring> using namespace st…… 题解列表 2024年04月08日 1 点赞 0 评论 775 浏览 评分:9.9 2579: 蓝桥杯2020年第十一届省赛真题-网络分析 摘要:解题思路:在两个集合合并时将每个节点的当前大小保存,将时间复杂度从(nm)压到了(n2)注意事项:注意使用启发式合并,不然还是会超时参考代码:#include<bits/stdc++.h> usin…… 题解列表 2024年04月08日 0 点赞 0 评论 784 浏览 评分:9.9 递归解法~~~~~~~~ 摘要:参考代码:def charge(n, summ): a = n // 3 b = n % 3 summ += a if (a + b) < 题解列表 2024年04月08日 0 点赞 0 评论 764 浏览 评分:6.0 Hash无脑过,二分有点坑!!! ```python#二分做法n=eval(input())ls=sorted(list(map(int,input().split())))target=eval(input())ans=[]defBinarySearch(ls,n,i):l, 题解列表 2024年04月08日 0 点赞 0 评论 639 浏览 评分:9.9 « 12...5308530953105311531253135314...59115912 »
3048: 抓住那头牛 摘要:解题思路: BFS: 三种移动方向 + 1, - 1, 2 * x注意事项:参考代码:#include<iostream> #include<cstring> using namespace st…… 题解列表 2024年04月08日 1 点赞 0 评论 775 浏览 评分:9.9
2579: 蓝桥杯2020年第十一届省赛真题-网络分析 摘要:解题思路:在两个集合合并时将每个节点的当前大小保存,将时间复杂度从(nm)压到了(n2)注意事项:注意使用启发式合并,不然还是会超时参考代码:#include<bits/stdc++.h> usin…… 题解列表 2024年04月08日 0 点赞 0 评论 784 浏览 评分:9.9
递归解法~~~~~~~~ 摘要:参考代码:def charge(n, summ): a = n // 3 b = n % 3 summ += a if (a + b) < 题解列表 2024年04月08日 0 点赞 0 评论 764 浏览 评分:6.0
Hash无脑过,二分有点坑!!! ```python#二分做法n=eval(input())ls=sorted(list(map(int,input().split())))target=eval(input())ans=[]defBinarySearch(ls,n,i):l, 题解列表 2024年04月08日 0 点赞 0 评论 639 浏览 评分:9.9