简洁的方式找到最大值的下标(C语言) 摘要:解题思路: 简单遍历数组内元素然后找到最大值再输出下标注意事项:参考代码:#include<stdio.h> int main() { int a, b, c = 0; i…… 题解列表 2022年11月22日 0 点赞 0 评论 220 浏览 评分: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 评论 163 浏览 评分:0.0
最大数位置 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[100],i; int max; int max_position; scanf("%d",…… 题解列表 2023年02月17日 0 点赞 0 评论 133 浏览 评分:0.0
用输入数组方法简单易懂完成(c语言) 摘要:解题思路:先定义并用scanf输入多少个数 n接着定义数组并输入数组a[n+1]各个数再用替代的方法替代现有最大max#includeint main() { int i,n,t; …… 题解列表 2023年08月28日 0 点赞 0 评论 199 浏览 评分:0.0
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
一个有点复杂的方法,不如其他大佬的优质解法(本人刚起步学习哈) 摘要:#includeint main(void){ int num; scanf("%d",&num); int a[num]; for(int…… 题解列表 2025年02月17日 0 点赞 0 评论 176 浏览 评分:0.0
c语言与c++结合-最大数位置 摘要:解题思路:注意事项:long long参考代码:#include<iostream>usingnamespacestd;intmain(){…… 题解列表 2025年04月20日 0 点赞 0 评论 60 浏览 评分:0.0
3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>int main(){ …… 题解列表 2022年11月14日 0 点赞 0 评论 322 浏览 评分:2.7
选择法)最大数位置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[1001]; int i; int j; int n; int max…… 题解列表 2022年11月21日 0 点赞 0 评论 317 浏览 评分:6.7
十几行代码直接搞定好叭 摘要:解题思路:#include <stdio.h> int main() { int n,i,t; scanf("%d",&n); double a[n+1],an,max;//不用i…… 题解列表 2022年11月22日 0 点赞 2 评论 703 浏览 评分:9.6