結果
問題 |
No.1395 Less Sweet Alchemy
|
ユーザー |
|
提出日時 | 2021-03-03 18:13:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 405 bytes |
コンパイル時間 | 3,468 ms |
コンパイル使用メモリ | 228,220 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-03 07:11:44 |
合計ジャッジ時間 | 4,026 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
#include <atcoder/all> #include <bits/stdc++.h> using namespace std; using namespace atcoder; #define MOD 1000000007 #define MOD99 998244353 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; if(i == n - 1)high = c; } if(low <= x && x <= high)cout << "Yes" << endl; else cout << "No" << endl; }