题解列表
题解 2945: 素数对
摘要:```c
#include
#include
// 函数用于检查一个数是否是素数
int is_prime(int num) {
if (num ……
题解 2944: 图像旋转翻转变换
摘要:```c
#include
#include
#define MAX_SIZE 100
void rotate90Clockwise(int mat[MAX_SIZE][MAX_S……
2939: 最匹配的矩阵(超详解)
摘要:```c
#include
#include
#include
#include
// 计算矩阵A的子矩阵与矩阵B的差值绝对和
int calculate_diff(int **A……
以自己理解写的,比较简单
摘要:解题思路:注意事项:尽量在b[y][x] = a[y][x]时把a[x][y]改掉参考代码:#include<stdio.h>int main(){ int x, y; int a[3……
题解 2845: 求10000以内n的阶乘
摘要:```c
#include
int main()
{
int a[100000] = { 0 };
a[1] = 1;
int len = 1;//len代表最高位
int n;……
题解 2861: 验证子串(用isSubstring()函数解决)
摘要:```c
#include
#include
int isSubstring(char* a, char* b, int len_a, int len_b)//默认len_a>len_b
{……
题解 2938: 甲流病人初筛
摘要:```c
#include
#include
typedef struct people
{
char name[10];
double tem;
int if_cough;……
车厢调度(python)
摘要:解题思路:注意事项:参考代码:def trainSchedule(n, order): stack = [] next_car = 1 for car in order: ……