結果

問題 No.1395 Less Sweet Alchemy
ユーザー keisuke6
提出日時 2022-07-11 15:59:41
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 3,432 ms
コンパイル使用メモリ 250,852 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 01:47:27
合計ジャッジ時間 3,914 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  int N,X;
  cin>>N>>X;
  vector<int> S(N);
  for(int i=0;i<N;i++) cin>>S[i];
  sort(S.begin(),S.end());
  if(S[0] <= X && X <= S[N-1]) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
0