Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159334 杨正蠔 找最大的数 C++ Accepted 3 MS 268 KB 425 2026-08-28 10:08:21

Tests(10/10):


Code:

#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 max=0,x=0; int a[10]={}; for(int i=0;i<10;i++){ cin>>a[i]; if(a[i]>max){max=a[i];x=i+1;} } cout<<x; return 0; }