結果
| 問題 |
No.1395 Less Sweet Alchemy
|
| コンテスト | |
| ユーザー |
umezo
|
| 提出日時 | 2021-02-14 21:45:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 344 bytes |
| コンパイル時間 | 2,197 ms |
| コンパイル使用メモリ | 196,268 KB |
| 最終ジャッジ日時 | 2025-01-18 20:51:35 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,x;
cin>>n>>x;
vector<int> A(n);
rep(i,n) cin>>A[i];
sort(ALL(A));
if(x>=A[0] && x<=A[n-1]) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}
umezo