2939: 最匹配的矩阵(超详解) ```c#include#include#include#include//计算矩阵A的子矩阵与矩阵B的差值绝对和intcalculate_diff(int**A,int**B,intr,ints,introw,intcol){intsum=0;for(inti=0;i 题解列表 2023年12月17日 0 点赞 0 评论 825 浏览 评分:9.9 以自己理解写的,比较简单 摘要:解题思路:注意事项:尽量在b[y][x] = a[y][x]时把a[x][y]改掉参考代码:#include<stdio.h>int main(){ int x, y; int a[3…… 题解列表 2023年12月17日 0 点赞 0 评论 437 浏览 评分:9.9 题解 2845: 求10000以内n的阶乘 ```c#includeintmain(){inta[100000]={0};a[1]=1;intlen=1;//len代表最高位intn;inti,j,k;scanf("%d",&n);for(i=1;i 题解列表 2023年12月17日 3 点赞 0 评论 779 浏览 评分:10.0 校门外的树 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>void sortTwoArray(int* pArrayA,int*pArrayB,int tot…… 题解列表 2023年12月17日 0 点赞 0 评论 426 浏览 评分:0.0 题解 2861: 验证子串(用isSubstring()函数解决) 摘要:```c #include #include int isSubstring(char* a, char* b, int len_a, int len_b)//默认len_a>len_b { …… 题解列表 2023年12月17日 1 点赞 0 评论 563 浏览 评分:0.0 题解 2938: 甲流病人初筛 ```c#include#includetypedefstructpeople{charname[10];doubletem;intif_cough;}patient;intmain(){intn,flag=0;patientarr[200], 题解列表 2023年12月17日 0 点赞 0 评论 633 浏览 评分:9.9 车厢调度(python) 摘要:解题思路:注意事项:参考代码:def trainSchedule(n, order): stack = [] next_car = 1 for car in order: …… 题解列表 2023年12月17日 0 点赞 0 评论 678 浏览 评分:2.0 编写题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:score = list(map(int, input().split())) if min(score) < 60: if max(score) >= 60…… 题解列表 2023年12月17日 1 点赞 0 评论 617 浏览 评分:10.0 合并果子(python) 摘要:解题思路:注意事项:参考代码:import heapqdef mergeFruits(fruits): heap = [] for fruit in fruits: heap…… 题解列表 2023年12月17日 0 点赞 0 评论 509 浏览 评分:0.0 二叉树遍历(python) 摘要:解题思路:注意事项:参考代码:# 定义树节点的数据结构class TreeNode: def __init__(self, val): self.val = val …… 题解列表 2023年12月17日 0 点赞 0 评论 639 浏览 评分:8.0 « 12...914915916917918919920...59165917 »
以自己理解写的,比较简单 摘要:解题思路:注意事项:尽量在b[y][x] = a[y][x]时把a[x][y]改掉参考代码:#include<stdio.h>int main(){ int x, y; int a[3…… 题解列表 2023年12月17日 0 点赞 0 评论 437 浏览 评分:9.9
题解 2845: 求10000以内n的阶乘 ```c#includeintmain(){inta[100000]={0};a[1]=1;intlen=1;//len代表最高位intn;inti,j,k;scanf("%d",&n);for(i=1;i 题解列表 2023年12月17日 3 点赞 0 评论 779 浏览 评分:10.0
校门外的树 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>void sortTwoArray(int* pArrayA,int*pArrayB,int tot…… 题解列表 2023年12月17日 0 点赞 0 评论 426 浏览 评分:0.0
题解 2861: 验证子串(用isSubstring()函数解决) 摘要:```c #include #include int isSubstring(char* a, char* b, int len_a, int len_b)//默认len_a>len_b { …… 题解列表 2023年12月17日 1 点赞 0 评论 563 浏览 评分:0.0
题解 2938: 甲流病人初筛 ```c#include#includetypedefstructpeople{charname[10];doubletem;intif_cough;}patient;intmain(){intn,flag=0;patientarr[200], 题解列表 2023年12月17日 0 点赞 0 评论 633 浏览 评分:9.9
车厢调度(python) 摘要:解题思路:注意事项:参考代码:def trainSchedule(n, order): stack = [] next_car = 1 for car in order: …… 题解列表 2023年12月17日 0 点赞 0 评论 678 浏览 评分:2.0
编写题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:score = list(map(int, input().split())) if min(score) < 60: if max(score) >= 60…… 题解列表 2023年12月17日 1 点赞 0 评论 617 浏览 评分:10.0
合并果子(python) 摘要:解题思路:注意事项:参考代码:import heapqdef mergeFruits(fruits): heap = [] for fruit in fruits: heap…… 题解列表 2023年12月17日 0 点赞 0 评论 509 浏览 评分:0.0
二叉树遍历(python) 摘要:解题思路:注意事项:参考代码:# 定义树节点的数据结构class TreeNode: def __init__(self, val): self.val = val …… 题解列表 2023年12月17日 0 点赞 0 评论 639 浏览 评分:8.0