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