結果
| 問題 |
No.1829 Möbius Tunnelling
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-04 22:17:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 546 bytes |
| コンパイル時間 | 1,662 ms |
| コンパイル使用メモリ | 167,468 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-11 12:00:26 |
| 合計ジャッジ時間 | 2,103 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef int64_t ll;
const int mod=1000000007;
int main(){
int n,a,b,c;
cin>>n>>a>>b>>c;
bool ans;
if(a<b){
if(c<a){//c a b
ans=false;
}else if(c<b){//a c b
ans=true;
}else{//a b c
ans=true;
}
}else{//b<a
if(c<b){//c b a
ans=true;
}else if(c<a){//b c a
ans=true;
}else{//b a c
ans=false;
}
}
if(c==a){
ans=false;
}else if(c==b){
ans=true;
}
if(ans)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}