結果
| 問題 | No.1395 Less Sweet Alchemy |
| コンテスト | |
| ユーザー |
zumin
|
| 提出日時 | 2021-02-23 10:24:11 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 330µs | |
| コード長 | 470 bytes |
| 記録 | |
| コンパイル時間 | 293 ms |
| コンパイル使用メモリ | 77,940 KB |
| 実行使用メモリ | 9,780 KB |
| 最終ジャッジ日時 | 2026-09-02 06:08:53 |
| 合計ジャッジ時間 | 1,676 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int n,x;
cin>>n>>x;
bool low=false,high=false;
for(int i=0;i<n;i++){
int ci;
cin>>ci;
if(ci==x){
cout<<"Yes"<<endl;
return 0;
}else if(ci<x){
low=true;
}else{
high=true;
}
}
if(low && high){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
return 0;
}
zumin