結果

問題 No.1829 Möbius Tunnelling
ユーザー 330Xs330Xs
提出日時 2022-02-05 12:15:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 71,540 KB
最終ジャッジ日時 2023-09-02 06:32:45
合計ジャッジ時間 3,583 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,252 KB
testcase_01 AC 78 ms
71,356 KB
testcase_02 AC 77 ms
71,508 KB
testcase_03 AC 75 ms
71,232 KB
testcase_04 AC 77 ms
71,248 KB
testcase_05 AC 77 ms
71,236 KB
testcase_06 AC 77 ms
71,540 KB
testcase_07 AC 77 ms
71,328 KB
testcase_08 AC 76 ms
71,396 KB
testcase_09 AC 76 ms
71,276 KB
testcase_10 AC 77 ms
71,204 KB
testcase_11 AC 78 ms
71,180 KB
testcase_12 AC 78 ms
71,280 KB
testcase_13 AC 75 ms
71,248 KB
testcase_14 AC 76 ms
71,340 KB
testcase_15 AC 76 ms
71,328 KB
testcase_16 AC 76 ms
71,476 KB
testcase_17 AC 76 ms
71,252 KB
testcase_18 AC 75 ms
71,392 KB
testcase_19 AC 78 ms
71,204 KB
testcase_20 AC 76 ms
71,372 KB
testcase_21 AC 75 ms
71,180 KB
testcase_22 AC 75 ms
71,500 KB
testcase_23 AC 76 ms
71,364 KB
testcase_24 AC 75 ms
71,516 KB
testcase_25 AC 76 ms
71,396 KB
testcase_26 AC 77 ms
71,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if(a < b):
    if(n - c + a + 1 > n):
        print('No')
    else:
        print('Yes')

else:
    if(n - a + c + 1 > n):
        print('No')
    else:
        print('Yes')
0