题解列表

筛选

1757:矩阵对角求和(C语言)

摘要:自己写的s山代码。。。#include<stdio.h> int main() {     int a[100][100];     int n = 0, i = 0, j = 0, x = ……

C语言题解 纸张尺寸 模拟

摘要:解题思路:用for模拟一下就行已经有大佬提前分析这个题了。我只是用来记录一下参考代码:#include <stdio.h> #include <string.h> #include <math.h……

宏定义之闰年判断(c语言详解哦)

摘要:解题思路:定义一个#define LEAP_YEAR(n),用里面的表达式的结果来判断是否是闰年首先知道闺年的条件:(1)四年一闰百年不闰:即如果year能够被4整除,但是不能被100整除,则year……

等差数列求和(求和公式)

摘要:解题思路:活用数学中数列的概念以及性质。注意事项:An=a1+(n-1)d//n正好为用户输入Sn=[a1+x(末尾)]*n/2参考代码://等差数列求和 #include <stdio.h>int ……

我的代码最垃圾(哭)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define N 100010typedef struct {    int a, b;} i……

十进制到八进制

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&a);    printf("%o",a); return 0……

深度优先遍历

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define MAX_SIZE 10int n, k, ans;char maze[MAX_S……