結果
| 問題 | No.1395 Less Sweet Alchemy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-20 07:23:35 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 384µs | |
| コード長 | 326 bytes |
| 記録 | |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 73,472 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-28 02:53:58 |
| 合計ジャッジ時間 | 1,755 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int n,k;cin>>n>>k;
int mn = 101;
int mx = -1;
for(int i = 0; n > i; i++){
int t;cin>>t;
mn = min(mn,t);
mx = max(mx,t);
}
if(mn <= k && k <= mx){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}