[编程入门]宏定义之找最大数-题解(C语言代码) 摘要:解题思路:宏定义和函数的返回值是最大值输出注意事项:宏定义用?:操作符,函数用if语句,也可以用?:求参考代码:#include<stdio.h> #define max(x,y,z) (x>y?x…… 题解列表 2020年12月01日 0 点赞 0 评论 734 浏览 评分:9.9
[编程入门]阶乘求和-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; long long a[21],sum1,sum2=0; scanf("%d",&n); …… 题解列表 2020年12月01日 0 点赞 0 评论 436 浏览 评分:9.9
[编程入门]完数的判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,k,sum,count,m; int a[100]; scanf("%d",&n); for…… 题解列表 2020年12月01日 0 点赞 0 评论 487 浏览 评分:9.9
做幻方-题解(C语言代码) 摘要:解题思路:注意事项:参考代码: 代码格式不太好看,建议粘贴在编译器上看11 18 25 …… 题解列表 2020年12月02日 0 点赞 0 评论 709 浏览 评分:9.9
[编程入门]报数问题-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,count=0,count1=0; int a[1000]={0}; scanf("%d",&n…… 题解列表 2020年12月02日 0 点赞 0 评论 858 浏览 评分:9.9
[编程入门]自定义函数之整数处理-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10]={0},b=9999999,c=-100000,x=0,y=0…… 题解列表 2020年12月03日 0 点赞 1 评论 1442 浏览 评分:9.9
蓝桥杯算法训练VIP-字符串的展开-题解(C++代码)那个最短的不行哈,我的代码全网最短。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int p1,p2,p3,i=0,k; char ch[300],be,a…… 题解列表 2020年12月03日 1 点赞 0 评论 631 浏览 评分:9.9
蓝桥杯基础练习-特殊回文数-题解(C++代码)代码简单不好吗~ 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int n; bool f(int x) { int m = x, s…… 题解列表 2020年12月03日 0 点赞 0 评论 626 浏览 评分:9.9
[编程入门]自定义函数处理最大公约数与最小公倍数-题解(C语言代码) 摘要:解题思路:由于最小公倍数=a/(最大公约数*b),所以先算出最大公约数,最小公倍数就自然而然出来了注意事项:参考代码:#include"stdio.h"int gcd(int a,int b);int…… 题解列表 2020年12月03日 0 点赞 1 评论 1328 浏览 评分:9.9
绝对值排序-题解(C语言代码) 摘要:### 解题思路 冒泡排序加写一个绝对值比较大小函数 看代码注释: ```c #include int panduan(int a,int b){ if(…… 题解列表 2020年12月03日 0 点赞 0 评论 643 浏览 评分:9.9