list.index()列表的函数不记得怎么办 摘要:解题思路:注意事项:参考代码:n=input()l=list(map(int,input().split()))m=max(l)print(l.index(m)+1)#学会使用列表的函数…… 题解列表 2023年05月05日 0 点赞 0 评论 524 浏览 评分:9.9
字符串移位包含问题 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年05月05日 0 点赞 0 评论 437 浏览 评分:9.9
C++解矩阵的两对角线的元素之和 摘要:矩阵的两对角线的相加,需要注意的是当矩阵是奇数阶的时候,要去除对角线的相同元素即可 ```cpp #include using namespace std; int main() { …… 题解列表 2023年05月05日 0 点赞 0 评论 523 浏览 评分: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 评论 471 浏览 评分:9.9
题解 1129: C语言训练-排序问题 摘要:直接上代码!!!!!!!!!!!!!!!!!!!!!! ```cpp #include //万能头 using namespace std; bool cmp(int a,int b) { …… 题解列表 2023年05月06日 0 点赞 0 评论 483 浏览 评分:9.9
题解 1001: [编程入门]第一个HelloWorld程序(消磨时间) 摘要:# 我就是在消磨时间!!!!! 如果程序报错,就是空格呀,符号个数呀,所以我认为最好复制,还省时间。  摘要:解题思路:通过倒序循环来完成“*”和“ ”的输出;注意事项:空格和换行不要忘了哦参考代码:#include<iostream>using namespace std;int main(){ in…… 题解列表 2023年05月06日 0 点赞 0 评论 376 浏览 评分: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 评论 523 浏览 评分:9.9
求圆的面积浅答 摘要:解题思路:先要有一个浮点型的半径r,当然还要知道圆的面积公式:半径的平方乘以PI,PI为3.1415926注意事项:这道题不能使用3.14的原因,按照样例来看应该是进行四舍五入了的;如果使用了3.14…… 题解列表 2023年05月07日 0 点赞 0 评论 581 浏览 评分:9.9