1757:矩阵对角求和(C语言) 摘要:自己写的s山代码。。。#include<stdio.h> int main() { int a[100][100]; int n = 0, i = 0, j = 0, x = …… 题解列表 2024年04月11日 1 点赞 0 评论 486 浏览 评分:0.0
C语言题解 纸张尺寸 模拟 摘要:解题思路:用for模拟一下就行已经有大佬提前分析这个题了。我只是用来记录一下参考代码:#include <stdio.h> #include <string.h> #include <math.h…… 题解列表 2024年04月10日 1 点赞 0 评论 697 浏览 评分:0.0
宏定义之闰年判断(c语言详解哦) 摘要:解题思路:定义一个#define LEAP_YEAR(n),用里面的表达式的结果来判断是否是闰年首先知道闺年的条件:(1)四年一闰百年不闰:即如果year能够被4整除,但是不能被100整除,则year…… 题解列表 2024年04月10日 0 点赞 0 评论 661 浏览 评分:0.0
等差数列求和(求和公式) 摘要:解题思路:活用数学中数列的概念以及性质。注意事项:An=a1+(n-1)d//n正好为用户输入Sn=[a1+x(末尾)]*n/2参考代码://等差数列求和 #include <stdio.h>int …… 题解列表 2024年04月10日 0 点赞 0 评论 804 浏览 评分:0.0
我的代码最垃圾(哭) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define N 100010typedef struct { int a, b;} i…… 题解列表 2024年04月10日 0 点赞 0 评论 1020 浏览 评分:6.5
王牌花色最简单的写法(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> // 计算牌的点数 int dianshu(char *play) { in…… 题解列表 2024年04月10日 0 点赞 0 评论 550 浏览 评分:0.0
十进制到八进制 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); printf("%o",a); return 0…… 题解列表 2024年04月09日 0 点赞 0 评论 588 浏览 评分:0.0
深度优先遍历 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define MAX_SIZE 10int n, k, ans;char maze[MAX_S…… 题解列表 2024年04月09日 0 点赞 0 评论 588 浏览 评分:0.0