两种方法:递归函数 && 简单for循环 摘要:解题思路:注意事项:参考代码://递归函数#include<iostream>#include<vector>using namespace std ;long long ko…… 题解列表 2025年04月17日 0 点赞 0 评论 34 浏览 评分:0.0
求最值索引,定指标max/j,在循环中不断替换 摘要:解题思路:求最值索引,定指标max/j,在循环中不断替换。输出记得索引+1。注意事项:参考代码:#include<iostream> using namespace std; int main()…… 题解列表 2024年12月10日 1 点赞 0 评论 209 浏览 评分: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 评论 230 浏览 评分: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 评论 175 浏览 评分:0.0
题解 3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ int n…… 题解列表 2024年05月05日 0 点赞 0 评论 151 浏览 评分:0.0
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e7;ll a[N…… 题解列表 2024年04月21日 1 点赞 0 评论 188 浏览 评分:8.0
题解 3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e7;ll a[N];in…… 题解列表 2024年04月21日 0 点赞 0 评论 160 浏览 评分: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 评论 139 浏览 评分:0.0
利用指针遍历得到答案 摘要:解题思路:循环输入数据,利用指针遍历,然后寻找最大值,记录位置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n;…… 题解列表 2023年12月19日 0 点赞 0 评论 107 浏览 评分:0.0
解 3020: 最大数位置 摘要: #include using namespace std; const int N = 20000; int a[N]; int i,w=0,c; …… 题解列表 2023年11月27日 0 点赞 0 评论 327 浏览 评分:9.9