题解 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
index查找列表下标 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))print(a.index(max(a))+1)…… 题解列表 2024年03月02日 0 点赞 0 评论 189 浏览 评分:0.0
编写题解 3020: 最大数位置 摘要:public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(…… 题解列表 2024年01月30日 0 点赞 0 评论 291 浏览 评分: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
3020: 最大数位置 摘要:``` #include using namespace std; int a[100000],n,maxx,num; int main(){ cin>>n; maxx = -1; …… 题解列表 2023年11月22日 0 点赞 0 评论 245 浏览 评分:9.9
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n; int a[100],max,max_i; scanf ("%d",&n);…… 题解列表 2023年10月25日 0 点赞 0 评论 144 浏览 评分:0.0
用输入数组方法简单易懂完成(c语言) 摘要:解题思路:先定义并用scanf输入多少个数 n接着定义数组并输入数组a[n+1]各个数再用替代的方法替代现有最大max#includeint main() { int i,n,t; …… 题解列表 2023年08月28日 0 点赞 0 评论 198 浏览 评分:0.0
3020: 最大数位置(C语言) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i…… 题解列表 2023年07月21日 1 点赞 2 评论 527 浏览 评分:10.0