出现次数超过一半的数 可AC 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>#include<stdlib.h>int main(){ int n,flag=0,a[100]=…… 题解列表 2023年03月14日 0 点赞 0 评论 423 浏览 评分: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 评论 386 浏览 评分: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 评论 687 浏览 评分:9.9
Switch打表-直接暴力 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;import static java.lang.System.exit;public class Main { p…… 题解列表 2023年03月14日 0 点赞 1 评论 331 浏览 评分:0.0
使用两个数组,一个判断是否走过,另一个判断字母是否重复。 摘要:这题的递归并没有结束条件,求最长的取单词路径长度,也就是说,上下左右都走不了,就是结束的时候,搜集最大路径的sum。 import java.math.BigInteger; import…… 题解列表 2023年03月14日 0 点赞 0 评论 822 浏览 评分:0.0
链表实现复数求和(头插+尾插)C语言实现 摘要:解题思路:注意事项:参考代码:<1.尾插版>#include<stdio.h>#include<malloc.h> #include<stdlib.h>typedef struct number{ i…… 题解列表 2023年03月14日 0 点赞 0 评论 398 浏览 评分:0.0
链表合并——按顺序输出 摘要:解题思路:将数据分别用列表存放注意事项:参考代码:N,M = map(int,input().split())L1 = []L2 = []L4 = []for i in range(N+M): …… 题解列表 2023年03月14日 0 点赞 0 评论 319 浏览 评分: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 评论 405 浏览 评分:0.0
数组插入处理 JAVA list集合 摘要:解题思路:单纯数组无法进行动态插入,建立两个数组来进行题解有点繁琐,采取List集合注意事项:参考代码:package CSiteExercise; import java.util.Array…… 题解列表 2023年03月14日 0 点赞 0 评论 554 浏览 评分:8.7
求三个数的最小公倍数 摘要:解题思路: 题目的意思就是求三个数的最小公倍数。注意事项: 参考代码:ls = list(map(int,input().split())) n = 1 while True: if n…… 题解列表 2023年03月14日 0 点赞 0 评论 411 浏览 评分:0.0