Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
87850 | 倪士燊 | 找最大的数 | C++ | Accepted | 1 MS | 276 KB | 275 | 2024-08-15 11:42:48 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[10]; for(int i = 0; i<=9; i++){ cin >> a[i]; } int leizhu = -2e9; int hao; for(int i=0; i<=9; i++){ if(a[i] > leizhu){ leizhu = a[i]; hao=i; } } cout << hao+1; return 0; }