結果

問題 No.1829 Möbius Tunnelling
ユーザー sk461sk461
提出日時 2022-02-04 21:26:44
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 1,095 bytes
コンパイル時間 1,977 ms
コンパイル使用メモリ 192,960 KB
最終ジャッジ日時 2025-01-27 18:39:07
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;

struct Setup_io {
    Setup_io() {
        ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
        cout << fixed << setprecision(15);
    }
} setup_io;

template <typename T>
inline bool chmax(T &a, const T &b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

template <typename T>
inline bool chmin(T &a, const T &b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}

// #include <boost/multiprecision/cpp_bin_float.hpp>
// #include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;

// #include <atcoder>
// using namespace atcoder;
// using mint = modint1000000007;
// using mint = modint998244353;

// const int MOD = 1000000007;
// const int MOD = 998244353;

int main() {
    int N, a, b, c;
    cin >> N >> a >> b >> c;
    if ((a < b && c >= b) || (a > b && c <= b)) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}
0