一个有点复杂的方法,不如其他大佬的优质解法(本人刚起步学习哈) 摘要:#includeint main(void){ int num; scanf("%d",&num); int a[num]; for(int…… 题解列表 2025年02月17日 0 点赞 0 评论 361 浏览 评分:0.0
求最值索引,定指标max/j,在循环中不断替换 摘要:解题思路:求最值索引,定指标max/j,在循环中不断替换。输出记得索引+1。注意事项:参考代码:#include<iostream> using namespace std; int main()…… 题解列表 2024年12月10日 2 点赞 0 评论 310 浏览 评分:0.0
3020:最大位数 摘要:解题思路:注意事项:参考代码:n = int(input())list_ = list(map(int, input().strip().split()))m = max(list_)i = list…… 题解列表 2024年09月28日 0 点赞 0 评论 445 浏览 评分:0.0
编写题解 3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n,max=0; cin>>n;int a[n];fo…… 题解列表 2024年06月11日 0 点赞 0 评论 413 浏览 评分:0.0
简洁的方式找到最大值的下标(C语言) 摘要:解题思路: 简单遍历数组内元素然后找到最大值再输出下标注意事项:参考代码:#include<stdio.h> int main() { int a, b, c = 0; i…… 题解列表 2022年11月22日 0 点赞 0 评论 281 浏览 评分:0.0
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e7;ll a[N];in…… 题解列表 2024年05月05日 0 点赞 0 评论 421 浏览 评分:0.0
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100000];int main(){ int n,maxx=1,…… 题解列表 2023年07月18日 0 点赞 0 评论 294 浏览 评分:0.0
题解 3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e7;ll a[N];in…… 题解列表 2024年04月21日 0 点赞 0 评论 372 浏览 评分:0.0
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>typedef long long ll;const int N=1e7;ll a[N];using namespace s…… 题解列表 2024年04月20日 0 点赞 0 评论 328 浏览 评分:0.0
index查找列表下标 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))print(a.index(max(a))+1)…… 题解列表 2024年03月02日 0 点赞 0 评论 247 浏览 评分:0.0