3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>typedef long long ll;const int N=1e7;ll a[N];using namespace s…… 题解列表 2024年04月20日 0 点赞 0 评论 227 浏览 评分:0.0
index查找列表下标 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))print(a.index(max(a))+1)…… 题解列表 2024年03月02日 0 点赞 0 评论 206 浏览 评分:0.0
编写题解 3020: 最大数位置 摘要:public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(…… 题解列表 2024年01月30日 0 点赞 0 评论 320 浏览 评分:0.0
利用指针遍历得到答案 摘要:解题思路:循环输入数据,利用指针遍历,然后寻找最大值,记录位置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n;…… 题解列表 2023年12月19日 0 点赞 0 评论 124 浏览 评分:0.0
用输入数组方法简单易懂完成(c语言) 摘要:解题思路:先定义并用scanf输入多少个数 n接着定义数组并输入数组a[n+1]各个数再用替代的方法替代现有最大max#includeint main() { int i,n,t; …… 题解列表 2023年08月28日 0 点赞 0 评论 225 浏览 评分:0.0
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100000];int main(){ int n,maxx=1,…… 题解列表 2023年07月18日 0 点赞 0 评论 252 浏览 评分:0.0
简洁的方式找到最大值的下标(C语言) 摘要:解题思路: 简单遍历数组内元素然后找到最大值再输出下标注意事项:参考代码:#include<stdio.h> int main() { int a, b, c = 0; i…… 题解列表 2022年11月22日 0 点赞 0 评论 241 浏览 评分:0.0
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 1001int main(){int a[N],max,p=0,n;a[0]=0;scanf("%d",&n);in…… 题解列表 2023年01月17日 0 点赞 0 评论 186 浏览 评分:0.0
最大数位置 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[100],i; int max; int max_position; scanf("%d",…… 题解列表 2023年02月17日 0 点赞 0 评论 149 浏览 评分:0.0
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>int main(){ …… 题解列表 2022年11月14日 0 点赞 0 评论 340 浏览 评分:2.7