Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100335 | 杜春雨 | 找最大的数 | C++ | Accepted | 1 MS | 272 KB | 496 | 2024-12-07 15:45:23 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int j[10]; int max=-1; int w=0; for(int a=0;a<10;a++){ cin>>j[a]; } for(int i=0;i<10;i++){ if(j[i]>max){ max=j[i]; w=i+1; } } cout<<w; return 0; }