[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#include <math.h>#define AUM(a,b,c) …… 题解列表 2024年09月01日 0 点赞 0 评论 426 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define LEAP_YEAR(y) (((y) % 4 == 0 …… 题解列表 2024年09月01日 0 点赞 0 评论 463 浏览 评分:0.0
[编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define MAX_OF_THREE(a, b, c) ( (a) …… 题解列表 2024年09月01日 0 点赞 0 评论 373 浏览 评分:0.0
暴力(c语言代码) 摘要:```c #include #include int main() { int n, m; // 用于存储两个数组的大小 scanf("%d %d", &n, &m…… 题解列表 2024年09月02日 0 点赞 0 评论 420 浏览 评分:0.0
二级C语言-计算素数和 摘要:解题思路:将m到n的值循环判断,是素数就累加,不是素数舍弃,最后输出即可注意事项:判断不是素数后,要返回一个0参考代码:#include<stdio.h>int isprime(int a){ …… 题解列表 2024年09月03日 0 点赞 0 评论 566 浏览 评分:0.0
1164: 数组的距离- 极简 摘要:解题思路:双指针算法注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; const int N = 1e3 + 1…… 题解列表 2024年09月04日 0 点赞 0 评论 389 浏览 评分:0.0
明明的随机数- 排序+ 双指针 摘要:解题思路:排序 + 双指针注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = …… 题解列表 2024年09月04日 0 点赞 0 评论 261 浏览 评分:0.0
1169: 绝对值排序 摘要:解题思路:归并排序注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> using namespace std; con…… 题解列表 2024年09月04日 0 点赞 0 评论 333 浏览 评分:0.0
使用C++迭代法 摘要:解题思路:观察例子我们会发现 第一个分数的分子会是下一个分数的分母,第一个分数的分子和分母之和会是下一个分数的分子,由此定义三个数;注意事项:参考代码:#include<iostream>using …… 题解列表 2024年09月05日 4 点赞 0 评论 387 浏览 评分:0.0
简单的数学思想 摘要:解题思路:这是一道简单的数学编程题,根据题意,我们可以知道,第n次的高度=初始高度/2的n次方;经过的路径=n-1次小球运动的路径,又因为每一次小球运动的路径=前一次运动路径的一半(n>=1),所以设…… 题解列表 2024年09月05日 0 点赞 0 评论 308 浏览 评分:0.0