绝对值排序!!!一看就懂 摘要:解题思路:1.首先输入要输入的行数(遇到0结束)我们与n相与,当n=0时,跳出循环。2.我们把我们要写入的数据放入我们定义的的数组里面,然后对数组进行排序。注意事项:注意换行参考代码:#include…… 题解列表 2023年05月05日 0 点赞 0 评论 309 浏览 评分:9.9
list.index()列表的函数不记得怎么办 摘要:解题思路:注意事项:参考代码:n=input()l=list(map(int,input().split()))m=max(l)print(l.index(m)+1)#学会使用列表的函数…… 题解列表 2023年05月05日 0 点赞 0 评论 419 浏览 评分:9.9
字符串移位包含问题 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年05月05日 0 点赞 0 评论 379 浏览 评分:9.9
C++解矩阵的两对角线的元素之和 摘要:矩阵的两对角线的相加,需要注意的是当矩阵是奇数阶的时候,要去除对角线的相同元素即可 ```cpp #include using namespace std; int main() { …… 题解列表 2023年05月05日 0 点赞 0 评论 439 浏览 评分:9.9
加油加油count 摘要:解题思路:注意事项:参考代码:n=int(input())l=list(map(int,input().split()))for i in range(0,max(l)+1): if i not…… 题解列表 2023年05月06日 0 点赞 0 评论 378 浏览 评分:9.9
题解 1129: C语言训练-排序问题 摘要:直接上代码!!!!!!!!!!!!!!!!!!!!!! ```cpp #include //万能头 using namespace std; bool cmp(int a,int b) { …… 题解列表 2023年05月06日 0 点赞 0 评论 414 浏览 评分:9.9
题解 1001: [编程入门]第一个HelloWorld程序(消磨时间) 摘要:# 我就是在消磨时间!!!!! 如果程序报错,就是空格呀,符号个数呀,所以我认为最好复制,还省时间。  摘要:解题思路:通过倒序循环来完成“*”和“ ”的输出;注意事项:空格和换行不要忘了哦参考代码:#include<iostream>using namespace std;int main(){ in…… 题解列表 2023年05月06日 0 点赞 0 评论 314 浏览 评分:9.9
1319: 没有上司的晚会 摘要:```cpp #include #include using namespace std; const int maxn=6001; int n,dp[maxn][2],hap[maxn];…… 题解列表 2023年05月06日 0 点赞 0 评论 447 浏览 评分:9.9