Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n;
  8. cin >> n;
  9.  
  10. vector<int> v(n);
  11.  
  12. for (int i = 0; i < n; ++i)
  13. cin >> v[i];
  14.  
  15. sort(v.begin(), v.end());
  16.  
  17. cout << "YES" << endl;
  18. cout << v[0] << ' ' << 1 << endl;
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement