蓝桥杯基础练习VIP-Huffuman树 摘要:解题思路:注意事项:参考代码:n=int(input())List=list(map(int,input().split()))cost=0while len(List)!=1: Min1=mi…… 题解列表 2021年12月21日 0 点赞 0 评论 283 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:#include<bits/stdc++.h> using namespace std; int main() { int length; cin >> length…… 题解列表 2021年12月21日 0 点赞 0 评论 161 浏览 评分:0.0
Switch与CharAt 摘要:解题思路:通过单字符串对比注意事项:用equals时(‘’)是单引号,之前用法参考代码: Scanner sc = new Scanner(System.in); Stri…… 题解列表 2021年12月21日 0 点赞 0 评论 265 浏览 评分:0.0
蓝桥杯基础练习VIP-阶乘计算 摘要:解题思路:注意事项:参考代码:def jc(n): result=1 while n!=1: result=result*n n=n-1 return i…… 题解列表 2021年12月21日 0 点赞 0 评论 295 浏览 评分:0.0
1055: 二级C语言-进制转换 摘要:对所需转换数不断做对 8 取余数压入向量和本身除以 8 的操作直到这个数等于 0,最后将向量逆序输出即为所求。#include<bits/stdc++.h> using namespace std;…… 题解列表 2021年12月21日 0 点赞 0 评论 201 浏览 评分:0.0
1044: [编程入门]三个字符串的排序 摘要:import java.io.*; import java.util.Arrays; /** * Arrays.sort() 也可以对 String 排序 */ public c…… 题解列表 2021年12月21日 0 点赞 0 评论 189 浏览 评分:0.0
1054: 二级C语言-计算素数和 摘要:写一个函数把 n~m 之间的每个数都判断一遍,true 的打印,false 的跳过。#include<bits/stdc++.h> using namespace std; bool sush…… 题解列表 2021年12月21日 0 点赞 0 评论 172 浏览 评分:0.0
1022: [编程入门]筛选N以内的素数 摘要:import java.io.*; /** * 筛法求素数 */ public class Main { public static BufferedReader in …… 题解列表 2021年12月21日 0 点赞 0 评论 289 浏览 评分:0.0
1621: 蓝桥杯算法训练VIP-字符串编辑 摘要:C++ string 自带的各种成员函数很方便,直接用就行。#include<bits/stdc++.h> using namespace std; int main(){ stri…… 题解列表 2021年12月21日 0 点赞 0 评论 223 浏览 评分:0.0