結果
| 問題 |
No.1395 Less Sweet Alchemy
|
| コンテスト | |
| ユーザー |
蜜蜂
|
| 提出日時 | 2021-02-14 21:32:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 374 bytes |
| コンパイル時間 | 1,427 ms |
| コンパイル使用メモリ | 167,284 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-22 08:52:24 |
| 合計ジャッジ時間 | 1,990 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using lb = long double;
#define fi first
#define se second
#define pb push_back
int main(){
int n,x;
cin>>n>>x;
int mx=0,mi=100;
for(int i=0;i<n;i++){
int c;
cin>>c;
mx=max(mx,c);
mi=min(mi,c);
}
if(mi<=x&&x<=mx){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
}
蜜蜂