Advertisement
OIQ

kek

OIQ
Jan 12th, 2020
181
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.  
  9.     int n;
  10.     cin >> n;
  11.     int m = 1000 * 1000 * 1000 + 1;
  12.  
  13.     for (int i = 0; i < n; i++) {
  14.         int c;
  15.         cin >> c;
  16.         m = min(m, c);
  17.     }
  18.  
  19.     cout << "YES" << endl << m << " " << 1;
  20.  
  21.     return 0;
  22. }
Advertisement
RAW Paste Data Copied
Advertisement