Guest User

Untitled

a guest
Jun 24th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <cstdio>
  2. #include <set>
  3. using namespace std;
  4. set<int> a;int n,x;
  5. int main()
  6. {
  7.     freopen("input.txt","r",stdin);
  8.     freopen("output.txt","w",stdout);
  9.     scanf("%d",&n);
  10.     for (int i=1;i<=n;i++){scanf("%d",x);a.insert(x);}
  11.     printf("%d\n",*a.begin());
  12.     return 0;
  13. }
Add Comment
Please, Sign In to add comment