Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94558 | 张新福 | 13求n个数的最小值 | C++ | Wrong Answer | 0 MS | 272 KB | 168 | 2024-10-24 16:20:40 |
#include <iostream> using namespace std; int main(){ int i,n,x,min=1; cin>>n; for(i=1;i<=n;i++){ cin>>x; if(x<min){ min==x; } } cout<<min; }
------Input------
8 74 34 87 21 47 95 59 99
------Answer-----
21
------Your output-----
1