[编程入门]自定义函数之字符类型统计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void count(char arr[]){ int i,a=0,b=0,c=0,d=0;for(i=0;arr[i]!='…… 题解列表 2020年12月01日 0 点赞 0 评论 648 浏览 评分:9.9
[编程入门]宏定义之找最大数-题解(C语言代码) 摘要:解题思路:宏定义和函数的返回值是最大值输出注意事项:宏定义用?:操作符,函数用if语句,也可以用?:求参考代码:#include<stdio.h> #define max(x,y,z) (x>y?x…… 题解列表 2020年12月01日 0 点赞 0 评论 888 浏览 评分: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 评论 549 浏览 评分: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 评论 608 浏览 评分:9.9
做幻方-题解(C语言代码) 摘要:解题思路:注意事项:参考代码: 代码格式不太好看,建议粘贴在编译器上看11 18 25 …… 题解列表 2020年12月02日 0 点赞 0 评论 855 浏览 评分: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 评论 1046 浏览 评分: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 评论 1658 浏览 评分: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 评论 794 浏览 评分:9.9
蓝桥杯基础练习-特殊回文数-题解(C++代码)代码简单不好吗~ 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int n; bool f(int x) { int m = x, s…… 题解列表 2020年12月03日 0 点赞 0 评论 788 浏览 评分:9.9
[编程入门]自定义函数处理最大公约数与最小公倍数-题解(C语言代码) 摘要:解题思路:由于最小公倍数=a/(最大公约数*b),所以先算出最大公约数,最小公倍数就自然而然出来了注意事项:参考代码:#include"stdio.h"int gcd(int a,int b);int…… 题解列表 2020年12月03日 0 点赞 1 评论 1416 浏览 评分:9.9