代码简洁易懂,查找最小绝对值 摘要:解题思路:输入->判断绝对值大小->利用中间变量调换位置->输出注意事项:既然题目说让我们找出其中绝对值最小的数,要用绝对值abs就要用头文件<math.h>参考代码:#include<stdio.h…… 题解列表 2021年12月21日 0 点赞 1 评论 830 浏览 评分:9.9
1040: [编程入门]实数的打印 摘要:无脑打印。#include <bits/stdc++.h> using namespace std; int main() { cout << setiosflags(ios::f…… 题解列表 2021年12月21日 0 点赞 0 评论 358 浏览 评分:0.0
蓝桥杯基础练习VIP-Huffuman树 摘要:解题思路:注意事项:参考代码:n=int(input())List=list(map(int,input().split()))cost=0while len(List)!=1: Min1=mi…… 题解列表 2021年12月21日 0 点赞 0 评论 489 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:#include<bits/stdc++.h> using namespace std; int main() { int length; cin >> length…… 题解列表 2021年12月21日 0 点赞 0 评论 309 浏览 评分:0.0
Switch与CharAt 摘要:解题思路:通过单字符串对比注意事项:用equals时(‘’)是单引号,之前用法参考代码: Scanner sc = new Scanner(System.in); Stri…… 题解列表 2021年12月21日 0 点赞 0 评论 470 浏览 评分:0.0
蓝桥杯基础练习VIP-阶乘计算 摘要:解题思路:注意事项:参考代码:def jc(n): result=1 while n!=1: result=result*n n=n-1 return i…… 题解列表 2021年12月21日 0 点赞 0 评论 532 浏览 评分:0.0
1055: 二级C语言-进制转换 摘要:对所需转换数不断做对 8 取余数压入向量和本身除以 8 的操作直到这个数等于 0,最后将向量逆序输出即为所求。#include<bits/stdc++.h> using namespace std;…… 题解列表 2021年12月21日 0 点赞 0 评论 454 浏览 评分:0.0
1044: [编程入门]三个字符串的排序 摘要:import java.io.*; import java.util.Arrays; /** * Arrays.sort() 也可以对 String 排序 */ public c…… 题解列表 2021年12月21日 0 点赞 0 评论 460 浏览 评分:0.0
1054: 二级C语言-计算素数和 摘要:写一个函数把 n~m 之间的每个数都判断一遍,true 的打印,false 的跳过。#include<bits/stdc++.h> using namespace std; bool sush…… 题解列表 2021年12月21日 0 点赞 0 评论 407 浏览 评分:0.0