結果

問題 No.1395 Less Sweet Alchemy
ユーザー hiikunZ
提出日時 2021-02-14 21:23:04
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 455 bytes
コンパイル時間 1,435 ms
コンパイル使用メモリ 168,020 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-22 08:36:32
合計ジャッジ時間 1,991 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll = long long int;
using ld = long double;
const ll MAX = 5000000000000000000;
ll MOD = 1000000007;
int main(){
    ll N,X;
    cin >> N >> X;
    if(N == 1){
        if(N == X) cout << "Yes\n";
        else cout << "No\n";
    }
    else{
        vector<ll> C(N);
        for(ll i = 0;i < N;i++) cin >> C[i];
        if(C[0] <= X && X <= C[N - 1]) cout << "Yes\n";
        else cout << "No\n";
    }
}
0