题解列表
迭代法求平方根C语言
摘要:#include<stdio.h>#include<math.h>int main(){long int n;int i=0;scanf("%ld",&n);double a[1000];a[0]=(……
蓝桥杯算法提高VIP-淘淘的名单 超简单
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; int N; cin>>N; ……
2021年第十二届国赛真题-大写
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; int n; gets(str); n=str……
1219: 数列排序
摘要:解题思路:观察输出,发现比第一位小的排序是靠右的排在前面,所以先从最后面开始遍历数组,找到比第一位小的就打印出来,然后再打印比第一位大的数参考代码:#include <stdio.h>
int ……
[编程入门]数字的处理与判断python
摘要:解题思路:注意事项:参考代码:number = input()a = str(number) #将输入的数转化为字符串形式print(len(a)) #转化后……
调用函数,不用辗转相除
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int gcd(int a,int b){ if(b==0) return a; else r……
结构体之成绩统计2C语言
摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>struct infor{char num[100];char name[100];int m……