#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int n; cin >> n; vector a(n); for (int i=0; i> a.at(i); } //////////////// 出力変数定義 //////////////// string result = "YES"; //////////////////// 処理 //////////////////// sort(a.begin(),a.end()); if (a.front()==a.back()) { result = "NO"; } else { for (int i=0; i