結果
| 問題 |
No.1395 Less Sweet Alchemy
|
| コンテスト | |
| ユーザー |
t33f
|
| 提出日時 | 2021-02-14 21:24:21 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 250 bytes |
| コンパイル時間 | 549 ms |
| コンパイル使用メモリ | 70,256 KB |
| 最終ジャッジ日時 | 2025-01-18 20:34:40 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n, x; cin >> n >> x;
int c[n]; for (int i = 0; i < n; i++) cin >> c[i];
cout << (*min_element(c, c+n) <= x && x <= *max_element(c, c+n) ? "Yes\n" : "No\n");
}
t33f