結果
| 問題 |
No.1395 Less Sweet Alchemy
|
| コンテスト | |
| ユーザー |
kkkk97368086
|
| 提出日時 | 2021-12-09 08:48:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 307 bytes |
| コンパイル時間 | 1,823 ms |
| コンパイル使用メモリ | 165,420 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-16 19:11:45 |
| 合計ジャッジ時間 | 2,738 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 6 WA * 6 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,x;
cin >> n >> x;
int ma=1000,mi=0;
for(int i=0; i<n; i++){
int c;
cin >> c;
ma = max(ma,c);
mi = min(mi,c);
}
if(x < mi || ma < x) cout << "No" << endl;
else cout << "Yes" << endl;
}
kkkk97368086