调用函数,不用辗转相除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int gcd(int a,int b){ if(b==0) return a; else r…… 题解列表 2022年01月17日 0 点赞 0 评论 376 浏览 评分:9.9
[编程入门]数字的处理与判断python 摘要:解题思路:注意事项:参考代码:number = input()a = str(number) #将输入的数转化为字符串形式print(len(a)) #转化后…… 题解列表 2022年01月17日 0 点赞 0 评论 342 浏览 评分:6.0
1219: 数列排序 摘要:解题思路:观察输出,发现比第一位小的排序是靠右的排在前面,所以先从最后面开始遍历数组,找到比第一位小的就打印出来,然后再打印比第一位大的数参考代码:#include <stdio.h> int …… 题解列表 2022年01月17日 0 点赞 0 评论 816 浏览 评分:9.9
阶乘求和C语言 摘要:#include<stdio.h>long int create(int n){ long int num=1; for(int i=1;i<=n;i++) { …… 题解列表 2022年01月17日 0 点赞 0 评论 333 浏览 评分:0.0
完数的判断C语言 摘要:#include<stdio.h>void find(int n){int sum=0,a[n];int j=0;for(int i=1;i<n;i++){if(n%i==0){sum+=i;a[j]…… 题解列表 2022年01月17日 0 点赞 0 评论 358 浏览 评分:0.0
2021年第十二届国赛真题-大写 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; int n; gets(str); n=str…… 题解列表 2022年01月17日 0 点赞 0 评论 524 浏览 评分:9.9
蓝桥杯算法提高VIP-淘淘的名单 超简单 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; int N; cin>>N; …… 题解列表 2022年01月17日 0 点赞 0 评论 311 浏览 评分:0.0
迭代法求平方根C语言 摘要:#include<stdio.h>#include<math.h>int main(){long int n;int i=0;scanf("%ld",&n);double a[1000];a[0]=(…… 题解列表 2022年01月17日 0 点赞 0 评论 327 浏览 评分:0.0
最小绝对值C语言 摘要:#include<stdio.h>#include<string.h>#include<math.h>int main(){int a[10];for(int i=0;i<10;i++){scanf(…… 题解列表 2022年01月17日 0 点赞 0 评论 463 浏览 评分:0.0
c++打印图案代码 摘要:解题思路:格式化输出就好了。注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){printf(" *\n");print…… 题解列表 2022年01月17日 0 点赞 35 评论 1037 浏览 评分:9.9