Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92480 | 叶城俊 | 找最大的数 | C++ | Accepted | 1 MS | 272 KB | 370 | 2024-10-05 14:21:10 |
#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; }