蓝桥杯算法训练VIP-瓷砖铺放 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { /** * @param args */ p…… 题解列表 2021年04月09日 0 点赞 0 评论 220 浏览 评分:6.0
这就是个冒泡排序bubble_Sort 摘要:解题思路:每次只能交换两个相邻的 升序不交换 降序才交换,这不就是冒泡排序吗- - 注意事项:拿一个cnt变量记录交换了多少次即可 参考代码: ``` public cl…… 题解列表 2021年04月09日 0 点赞 1 评论 569 浏览 评分:9.9
简单python走起 摘要:解题思路:注意事项:参考代码:mas=input().split() mas_1=[len(i) for i in mas ] mx=mas_1.index(max(mas_1)) print(…… 题解列表 2021年04月09日 0 点赞 0 评论 269 浏览 评分:0.0
简单 易懂 矩阵转换 摘要:输入时按行输入1 1 12 2 23 3 3输出时按列输出1 2 31 2 31 2 3#include <stdio.h>#include <stdlib.h>int main(){ int …… 题解列表 2021年04月09日 0 点赞 0 评论 422 浏览 评分:9.0
简单python走起 摘要:解题思路:注意事项:参考代码:def cc(n): a=list(str(n)) b=list(str(n)) a.sort(reverse=True) b.…… 题解列表 2021年04月09日 0 点赞 0 评论 333 浏览 评分:0.0
简单python走起 摘要:解题思路:注意事项:参考代码:for i in range(100,335): l=[] a=i b=2*i c=3*i l.extend(…… 题解列表 2021年04月09日 0 点赞 0 评论 438 浏览 评分:0.0
简单解法(C语言) 摘要:解题思路:每输入一个数就判断是不是为0,为0输出,不为0忽略。注意事项:参考代码:#include<stdio.h>int main(){ int i,n; scanf("%d",&n); int x…… 题解列表 2021年04月09日 0 点赞 1 评论 379 浏览 评分:8.0
容易理解的C语言代码 摘要:解题思路:注意事项: 数组长度要足够大,不然存储不了,空间不够参考代码:#include <stdio.h> #include <string.h> int main() { i…… 题解列表 2021年04月08日 0 点赞 0 评论 130 浏览 评分:0.0
瞅瞅撒,利用指针解决此题,我这绝对是代码量最少的。(C语言描述) 摘要:解题思路:注意事项:参考代码:#include #include #include void main() { char a[1024],*c; gets(a); in…… 题解列表 2021年04月08日 0 点赞 1 评论 468 浏览 评分:9.6
优质题解 超级简单又简洁的C语言代码 摘要:解题思路:这题就是变向地求最小公倍数因为这样才能 各组平分核桃 那这个问题就变成了如何求最小公倍数了,那我们应该使用辗转相除法来求最大公因数和最小公倍数的相关性质:两数的乘积除以最大公因数就是最小公倍…… 题解列表 2021年04月08日 0 点赞 1 评论 2562 浏览 评分:9.3