結果

問題 No.1829 Möbius Tunnelling
ユーザー tombo314tombo314
提出日時 2022-02-04 21:47:12
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 87,304 KB
実行使用メモリ 71,652 KB
最終ジャッジ日時 2023-09-02 04:41:08
合計ジャッジ時間 3,475 ms
ジャッジサーバーID
(参考情報)
judge16 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 71 ms
71,280 KB
testcase_02 AC 72 ms
71,136 KB
testcase_03 WA -
testcase_04 AC 75 ms
71,464 KB
testcase_05 WA -
testcase_06 AC 71 ms
71,308 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 70 ms
71,632 KB
testcase_10 WA -
testcase_11 AC 72 ms
71,276 KB
testcase_12 AC 71 ms
71,460 KB
testcase_13 AC 71 ms
71,384 KB
testcase_14 AC 71 ms
71,312 KB
testcase_15 AC 72 ms
71,460 KB
testcase_16 AC 72 ms
71,392 KB
testcase_17 WA -
testcase_18 AC 71 ms
71,140 KB
testcase_19 AC 70 ms
71,468 KB
testcase_20 WA -
testcase_21 AC 71 ms
71,464 KB
testcase_22 AC 73 ms
71,376 KB
testcase_23 AC 71 ms
71,240 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a, b, c = map(int, input().split())

if a<b:
    left = b - 1
    if N+1 - left >= c:
        print("Yes")
    else:
        print("No")
else:
    right = N - b
    if c <= right:
        print("Yes")
    else:
        print("No")
0