Cod sursa(job #1709041)
Utilizator | Data | 28 mai 2016 10:40:55 | |
---|---|---|---|
Problema | Twoton | Scor | 0 |
Compilator | cpp | Status | done |
Runda | ONIS 2016 - Runda - 2 - ACM ICPC Romanian Programming Contest | Marime | 0.34 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream f ("twoton.in");
ofstream g ("twoton.out");
int n,i,x,minim=200001;
f>>n;
for(i=1;i<=n;i++)
{
f>>x;
if(x<minim)
minim=x;
}
g<<minim<<'\n';
f.close();
g.close();
return 0;
}