- 龙凤苑中学A班5.17
找最小值答案可复制
- @ 2024-5-17 17:10:03
#include <bits/stdc++.h>
using namespace std;
int a[1000000],b,s=21000000;
int main() {
cin>>b;
for(int i=0;i<b;i++){ cin>>a[i]; } for(int i=0;i<b;i++){ if(a[i]<s){ s=a[i];
} } cout<<s;
return 0;
}
0 comments
No comments so far...