Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5741 詹梓涵 13求n个数的最小值 C++ Accepted 0 MS 268 KB 277 2024-12-14 12:57:18

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<algorithm> #include<limits.h> using namespace std; int main(){ int m=INT_MAX; int n,z; cin>>z; for(int i=1;i<=z;i++){ cin>>n; if(n<m) swap(n,m); } cout<<m<<endl; return 0; }