結果

問題 No.1829 Möbius Tunnelling
ユーザー bayashi-clbayashi-cl
提出日時 2022-02-05 12:15:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 609 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 10,976 KB
実行使用メモリ 9,892 KB
最終ジャッジ日時 2023-09-02 06:32:41
合計ジャッジ時間 2,144 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
9,800 KB
testcase_01 AC 32 ms
9,692 KB
testcase_02 AC 31 ms
9,772 KB
testcase_03 AC 32 ms
9,888 KB
testcase_04 AC 31 ms
9,660 KB
testcase_05 AC 31 ms
9,892 KB
testcase_06 AC 31 ms
9,688 KB
testcase_07 AC 32 ms
9,796 KB
testcase_08 AC 32 ms
9,748 KB
testcase_09 AC 31 ms
9,680 KB
testcase_10 AC 32 ms
9,816 KB
testcase_11 AC 32 ms
9,676 KB
testcase_12 AC 32 ms
9,736 KB
testcase_13 AC 32 ms
9,744 KB
testcase_14 AC 32 ms
9,696 KB
testcase_15 AC 32 ms
9,688 KB
testcase_16 AC 32 ms
9,784 KB
testcase_17 AC 31 ms
9,700 KB
testcase_18 AC 31 ms
9,740 KB
testcase_19 AC 31 ms
9,788 KB
testcase_20 AC 31 ms
9,696 KB
testcase_21 AC 31 ms
9,692 KB
testcase_22 AC 31 ms
9,700 KB
testcase_23 AC 32 ms
9,664 KB
testcase_24 AC 32 ms
9,852 KB
testcase_25 AC 32 ms
9,680 KB
testcase_26 AC 32 ms
9,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import functools
import sys
import typing
from typing import Callable, Dict, List, Set, Tuple


sys.setrecursionlimit(10 ** 6)
sinput: Callable[..., str] = sys.stdin.readline
debug = functools.partial(print, file=sys.stderr)
MOD: int = 998244353
INF: float = float("Inf")
IINF: int = sys.maxsize // 2


def main() -> None:
    _ = int(input())
    a, b, c = map(int, input().split())

    if a == c:
        print("No")
    elif b == c:
        print("Yes")
    elif b < a < c:
        print("No")
    elif c < a < b:
        print("No")
    else:
        print("Yes")


if __name__ == "__main__":
    main()
0