結果

問題 No.1829 Möbius Tunnelling
ユーザー 330Xs
提出日時 2022-02-05 12:15:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 82,572 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-06-11 13:26:44
合計ジャッジ時間 1,848 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

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