結果
| 問題 |
No.1395 Less Sweet Alchemy
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-14 21:24:00 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 742 bytes |
| コンパイル時間 | 2,019 ms |
| コンパイル使用メモリ | 197,332 KB |
| 最終ジャッジ日時 | 2025-01-18 20:33:40 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned int uint;
typedef unsigned long long ull;
static const double EPS = 1e-12;
static const double PI = acos(-1.0);
template <class T>
using V = vector<T>;
template <class T>
using VV = V<V<T>>;
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(a) (a).begin(), (a).end()
#ifdef LOCAL
#define dbg(x) cerr << __LINE__ << " : " << #x << " = " << (x) << endl
#else
#define dbg(x) true
#endif
int main() {
int n, x;
cin >> n >> x;
vector<ll> c(n);
REP(i, n) {
cin >> c[i];
}
sort(ALL(c));
cout << ((c[0] <= x && x <= c[n - 1]) ? "Yes" : "No") << endl;
return 0;
}