2717: 蓝桥杯2022年第十三届决赛真题-左移右移 最清晰 摘要: import java.util.*; public class 左移右移二维 { public static void main(String[] args) { Scanner s…… 题解列表 2023年03月14日 1 点赞 8 评论 907 浏览 评分:9.4
蓝桥杯专题系列-1541(Python) 摘要:解题思路:内置math函数gcd()求最大公约数,但本题其实考察的是数的拆分注意事项:不要傻傻的用函数自己调用自己参考代码:Python暴力解法:import mathcnt = 0n = int(i…… 题解列表 2023年03月14日 0 点赞 0 评论 217 浏览 评分:0.0
出现次数超过一半的数 可AC 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>#include<stdlib.h>int main(){ int n,flag=0,a[100]=…… 题解列表 2023年03月14日 0 点赞 0 评论 248 浏览 评分:0.0
c++二维数组的转置(最简单方法) 摘要:解题思路:a[0][0] a[0][1] a[0][2] a[1][0] a[1][1] a[1][2] &nb 题解列表 2023年03月14日 0 点赞 1 评论 224 浏览 评分:8.0
1268: 第K极值 摘要:```cpp #include using namespace std; const int maxn=10001; int n,k,arr[maxn],ans; string is_pre…… 题解列表 2023年03月14日 0 点赞 0 评论 496 浏览 评分:9.9
Switch打表-直接暴力 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;import static java.lang.System.exit;public class Main { p…… 题解列表 2023年03月14日 0 点赞 1 评论 211 浏览 评分:0.0
使用两个数组,一个判断是否走过,另一个判断字母是否重复。 摘要:这题的递归并没有结束条件,求最长的取单词路径长度,也就是说,上下左右都走不了,就是结束的时候,搜集最大路径的sum。 import java.math.BigInteger; import…… 题解列表 2023年03月14日 0 点赞 0 评论 626 浏览 评分:0.0
链表实现复数求和(头插+尾插)C语言实现 摘要:解题思路:注意事项:参考代码:<1.尾插版>#include<stdio.h>#include<malloc.h> #include<stdlib.h>typedef struct number{ i…… 题解列表 2023年03月14日 0 点赞 0 评论 206 浏览 评分:0.0
链表合并——按顺序输出 摘要:解题思路:将数据分别用列表存放注意事项:参考代码:N,M = map(int,input().split())L1 = []L2 = []L4 = []for i in range(N+M): …… 题解列表 2023年03月14日 0 点赞 0 评论 171 浏览 评分:0.0
结构体之成绩统计2——输出平均成绩和最高成绩的学生信息 摘要:解题思路:注意事项:最后结果要取整数参考代码:n = int(input())L = []a=b=c=s1=s2=s3=avg=0for i in range(n): L1 = list(map…… 题解列表 2023年03月14日 0 点赞 0 评论 247 浏览 评分:0.0