Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87846 王馨桐 找最大的数 C++ Accepted 0 MS 268 KB 246 2024-08-15 11:37:47

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int ar[10]; for(int i=0; i<=9; i++){ cin >>ar[i]; } int l=-2e9; int h; for(int i=0; i<=9; i++){ if(ar[i]>l){ l=ar[i]; h=i; } } cout <<h+1; return 0; }