Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101256 | 高楷伦 | 找最大的数 | C++ | Accepted | 1 MS | 272 KB | 449 | 2024-12-14 17:16:43 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<queue> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[10]; int w=0,e=0; for(int i=0;i<10;i++){ cin>>a[i]; } for(int i=0;i<10;i++){ if(a[i]>w){ w=a[i]; e=i+1; } } cout<<e; return 0; }