1286基础解法(Python) 摘要:解题思路:最大-最小注意事项:合理运用数据类型简化处理难度参考代码:m = int(input())lst_1 = sorted(map(int, input().split()))lst_2 = s…… 题解列表 2023年03月10日 0 点赞 0 评论 470 浏览 评分:9.9
解决纸张尺寸问题 摘要:解题思路:使用列表存储两个长短边的信息,根据用户输入的尺寸,判断长短边(要判断输出的长短边信息,要先输出长边)参考代码:long=[] short=[] s=int(input().strip()…… 题解列表 2023年03月10日 0 点赞 0 评论 1143 浏览 评分:9.5
城市路(Dijkstra) 摘要:解题思路:看注释 参考代码: ```cpp #include // 引入所有标准库头文件 using namespace std; #define ll long long // 定义 lo…… 题解列表 2023年03月10日 0 点赞 0 评论 523 浏览 评分:9.9
题解 1114: C语言考试练习题_排列(c语言) 摘要:解题思路:注意事项: 有被无语到,jl题目还限制输出顺序……发这个完全就是想吐槽一下这sb题目 法一为适应题目顺序的解,法二为该问题的通解参考代码:法一:#include<stdio.h>…… 题解列表 2023年03月10日 0 点赞 1 评论 394 浏览 评分:0.0
字符串匹配问题(strs) 摘要:解题思路:将字符用数字来代替注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//定义字符数组 和 数字数组 // 数字的优先级为0,1,2,3…… 题解列表 2023年03月10日 0 点赞 0 评论 540 浏览 评分:0.0
二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int c; int f; for(c=-100;c<=150;c=c+5) { f= 32 + c* 9/5…… 题解列表 2023年03月10日 0 点赞 0 评论 497 浏览 评分:0.0
无参宏定义 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define m a%bint main(){ int a,b; scanf("%d%d",&a,&b); printf("%d",m…… 题解列表 2023年03月10日 0 点赞 0 评论 369 浏览 评分:0.0
二级C语言-成绩归类 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100]; int A=0,B=0,C=0; for(int i=1;i<=100;i++) { …… 题解列表 2023年03月10日 0 点赞 0 评论 275 浏览 评分:0.0
二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:C语言 abs() 函数用于求整数的绝对值。头文件:math.h 或者 stdlib.h语法/原型:int abs(int n);n 表示要求绝对值的数。返回值:参数的绝对值。参考…… 题解列表 2023年03月10日 0 点赞 0 评论 295 浏览 评分:0.0
最短路径—DIGSKRA算法 摘要:AC代码://重新编写最短路径算法 #include <iostream> #include <cstring> #define max_vex 1001 //最多结点个数---不要加分号 …… 题解列表 2023年03月10日 0 点赞 0 评论 450 浏览 评分:9.9