2059——————sort练习 摘要: n,m = map(int,input().split()) s = sorted(list(map(int,input().split())))[::-1] for i …… 题解列表 2022年07月17日 0 点赞 0 评论 467 浏览 评分:0.0
编写题解 1055: 二级C语言-进制转换(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(void){ int n; scanf("%d", &n); int a[100]…… 题解列表 2022年07月16日 0 点赞 0 评论 352 浏览 评分:0.0
编写题解 1054: 二级C语言-计算素数和(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int isprime(int x);int main(void){ int m, n; scanf("…… 题解列表 2022年07月16日 0 点赞 0 评论 385 浏览 评分:0.0
求具有abcd=(ab+cd)2性质的四位数(关于空格输出问题) 摘要:解题思路:判断第一次不输出空格后来都输出就可以了注意事项:参考代码:#include<stdio.h>int main(void){ int i; int j=0; for(i=1000;i<9999…… 题解列表 2022年07月16日 0 点赞 0 评论 333 浏览 评分:0.0
1114: C语言考试练习题_排列,简单易理解的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void print(int,int,int);int main(void){ int i; int a[4]={0}; for(i=0…… 题解列表 2022年07月16日 0 点赞 0 评论 333 浏览 评分:0.0
answer question 摘要:解题思路:anwer the whole question is answer like usual persnaly my own opinion is to caoculate the selut…… 题解列表 2022年07月16日 0 点赞 1 评论 240 浏览 评分:7.3
辗转相处法(函数的调用) 摘要:```c //这和前面章节求最大公倍数,最小公约数思想一样,现在只是用函数来实现 //同理我们只要构造一个函数把辗转相除法的算法加到里面就可以了 #include int yue(int i,…… 题解列表 2022年07月16日 0 点赞 0 评论 468 浏览 评分:0.0
简易代码(C)望空破茧 摘要:解题思路: 题:有三个整数a b c,由键盘输入,输出其中的最大的数。方法有很多,如1:利用if,else if语句;2:中间量法,即if (a>=b) t=a; else t=b; …… 题解列表 2022年07月16日 0 点赞 0 评论 361 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数(C语言简单粗暴) 摘要: #include int gys(int m, int n); int gbs(int m, int n); int main() { …… 题解列表 2022年07月16日 0 点赞 0 评论 372 浏览 评分:9.9
信息学奥赛一本通T1538-清点人数-题解(各语言代码) 摘要:**C** ```c #include #include int main(){ char c; int n,k,m,p; scanf("%d%d",&n,&k); int*l…… 题解列表 2022年07月16日 0 点赞 0 评论 853 浏览 评分:9.9