結果
| 問題 |
No.1829 Möbius Tunnelling
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-06 00:10:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 235 bytes |
| コンパイル時間 | 309 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-11-23 13:13:51 |
| 合計ジャッジ時間 | 2,605 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = int(input())
a, b, c = map(int, input().split())
a-=1
b-=1
c-=1
c += N
if b<a:
if a+N>c:
print("Yes")
else:
print("No")
else:
if (c+N)%(N*2)>a:
print("Yes")
else:
print("No")