迭代法求平方根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 评论 295 浏览 评分:0.0
蓝桥杯算法提高VIP-淘淘的名单 超简单 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; int N; cin>>N; …… 题解列表 2022年01月17日 0 点赞 0 评论 281 浏览 评分: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 评论 494 浏览 评分:9.9
完数的判断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 评论 324 浏览 评分:0.0
阶乘求和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 评论 301 浏览 评分:0.0
1219: 数列排序 摘要:解题思路:观察输出,发现比第一位小的排序是靠右的排在前面,所以先从最后面开始遍历数组,找到比第一位小的就打印出来,然后再打印比第一位大的数参考代码:#include <stdio.h> int …… 题解列表 2022年01月17日 0 点赞 0 评论 751 浏览 评分:9.9
[编程入门]数字的处理与判断python 摘要:解题思路:注意事项:参考代码:number = input()a = str(number) #将输入的数转化为字符串形式print(len(a)) #转化后…… 题解列表 2022年01月17日 0 点赞 0 评论 297 浏览 评分:6.0
调用函数,不用辗转相除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int gcd(int a,int b){ if(b==0) return a; else r…… 题解列表 2022年01月17日 0 点赞 0 评论 338 浏览 评分:9.9
结构体之成绩统计2C语言 摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>struct infor{char num[100];char name[100];int m…… 题解列表 2022年01月17日 0 点赞 0 评论 266 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:将后面n个值先拿一个数组存放,然后从第n-m-1个数开始以自减的方式向后移m个,最后将存放的值赋给前m个。注意事项:参考代码:#include "stdio.h"void yiwei(int…… 题解列表 2022年01月17日 0 点赞 0 评论 247 浏览 评分:0.0