题解列表

筛选

这就是个冒泡排序bubble_Sort

摘要:解题思路:每次只能交换两个相邻的 升序不交换 降序才交换,这不就是冒泡排序吗- - 注意事项:拿一个cnt变量记录交换了多少次即可 参考代码: ``` public cl……

简单python走起

摘要:解题思路:注意事项:参考代码:mas=input().split() mas_1=[len(i) for i in mas ] mx=mas_1.index(max(mas_1)) print(……

简单 易懂 矩阵转换

摘要:输入时按行输入1 1 12 2 23 3 3输出时按列输出1 2 31 2 31 2 3#include <stdio.h>#include <stdlib.h>int main(){    int ……

简单python走起

摘要:解题思路:注意事项:参考代码:def  cc(n):     a=list(str(n))     b=list(str(n))     a.sort(reverse=True)     b.……

简单python走起

摘要:解题思路:注意事项:参考代码:for i in range(100,335):      l=[]      a=i      b=2*i      c=3*i      l.extend(……

简单解法(C语言)

摘要:解题思路:每输入一个数就判断是不是为0,为0输出,不为0忽略。注意事项:参考代码:#include<stdio.h>int main(){ int i,n; scanf("%d",&n); int x……

容易理解的C语言代码

摘要:解题思路:注意事项:    数组长度要足够大,不然存储不了,空间不够参考代码:#include <stdio.h> #include <string.h> int main() {     i……
优质题解

超级简单又简洁的C语言代码

摘要:解题思路:这题就是变向地求最小公倍数因为这样才能 各组平分核桃 那这个问题就变成了如何求最小公倍数了,那我们应该使用辗转相除法来求最大公因数和最小公倍数的相关性质:两数的乘积除以最大公因数就是最小公倍……