看看#define是多么强大的存在 摘要:解题思路:1、题目要求输出一个自然数,所以找到一个就可以结束程序。2、由于题目给出的条件很多,为了方便修改和维护,所以想到了#define注意事项:1、使用#define要做到勤用括号(),多用括号代…… 题解列表 2021年10月11日 0 点赞 0 评论 259 浏览 评分:0.0
计算1~N之间所有奇数之和 摘要:解题思路:从1到N判断每一个数如果为奇数,累加如果为偶数,跳过参考代码:#include"iostream" using namespace std; int ans = 0; bool che…… 题解列表 2021年10月11日 0 点赞 0 评论 796 浏览 评分:9.9
自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double M,a,c,d; double b=0; int N; scanf("%l…… 题解列表 2021年10月11日 0 点赞 0 评论 302 浏览 评分:0.0
最小公倍数 = a*b/最大公约数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int s; int a; int b; int k,m; scanf("%d%d",&a,&b); m=a,k…… 题解列表 2021年10月11日 0 点赞 0 评论 420 浏览 评分:0.0
编写题解 1093: 字符逆序 基础解法 摘要:解题思路:正常解法注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int b,c,d,n; char a[100]; gets(a);…… 题解列表 2021年10月11日 0 点赞 0 评论 596 浏览 评分:9.9
数据结构单链表的使用 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include<stdlib.h>typedef int Elemtype;typedef struct LNode //结构定义{…… 题解列表 2021年10月11日 0 点赞 0 评论 405 浏览 评分:0.0
DNA-一种题解 摘要:参考代码:public void dna() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); f…… 题解列表 2021年10月11日 0 点赞 0 评论 207 浏览 评分:0.0
编写题解 1021: [编程入门]迭代法求平方根 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int a; …… 题解列表 2021年10月11日 0 点赞 0 评论 417 浏览 评分:7.3
编写题解 1979: 求平均工资 摘要:解题思路:编辑数组先求和再求平均值注意事项:参考代码:#include <stdio.h>int main(){ int n,i,j,b=0,c; scanf("%d",&n); int a[n];…… 题解列表 2021年10月11日 0 点赞 0 评论 303 浏览 评分:9.9
蓝桥杯算法训练-送分啦 让我吐个槽 摘要:解题思路:真的这么奇葩吗,我还没试试NO会怎么样注意事项:参考代码:#include<stdio.h>int main(){ printf("yes"); return 0;}…… 题解列表 2021年10月11日 0 点赞 0 评论 417 浏览 评分:9.9