Run ID:92481
提交时间:2024-10-05 14:22:58
#include<iostream> using namespace std; int main(){ int c[10]; int max=0; for(int i=0;i<10;i++){ cin>>c[i]; } for(int i=0;i<10;i++){ if(c[i]>max){ max=c[i]; } } for(int i=0;i<10;i++){ if(max==c[i]){ cout<<i+1; return 0; } } return 0; }