結果

問題 No.1395 Less Sweet Alchemy
ユーザー Nokusu643
提出日時 2021-03-03 18:13:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 1,470 ms
コンパイル使用メモリ 166,820 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-03 07:11:06
合計ジャッジ時間 1,967 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int n,x,c,high = 0,low = 0;
    cin >> n >> x;
    for(int i = 0;i < n;i++){
        cin >> c;
        if(i == 0)low = c;
        else if(i == n - 1)high = c;
    }
    if(low <= x && x <= high)cout << "Yes" << endl;
    else cout << "No" << endl;
}
0