結果
| 問題 |
No.1829 Möbius Tunnelling
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-07 15:48:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 683 bytes |
| コンパイル時間 | 1,435 ms |
| コンパイル使用メモリ | 166,236 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-13 00:29:18 |
| 合計ジャッジ時間 | 2,196 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std ;
typedef long long ll ;
typedef long double ld ;
typedef pair<ll,ll> P ;
typedef tuple<ll,ll,ll> TP ;
#define chmin(a,b) a = min(a,b)
#define chmax(a,b) a = max(a,b)
#define bit_count(x) __builtin_popcountll(x)
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) a / gcd(a,b) * b
#define rep(i,n) for(int i = 0 ; i < n ; i++)
#define rrep(i,a,b) for(int i = a ; i < b ; i++)
#define endl "\n"
int n , a , b , c ;
int main(){
cin >> n >> a >> b >> c ;
bool ok = true;
if(a == c) ok = false ;
if(b < a && a < c) ok = false ;
if(c < a && a < b) ok = false ;
if(ok) cout << "Yes" << endl;
else cout << "No" << endl ;
}