Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <set>
- using namespace std;
- set<int> a;int n,x;
- int main()
- {
- freopen("input.txt","r",stdin);
- freopen("output.txt","w",stdout);
- scanf("%d",&n);
- for (int i=1;i<=n;i++){scanf("%d",x);a.insert(x);}
- printf("%d\n",*a.begin());
- return 0;
- }
Add Comment
Please, Sign In to add comment