結果
| 問題 | No.1829 Möbius Tunnelling |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-06 00:10:55 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 2,000 ms |
| + 726µs | |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 82,472 KB |
| 実行使用メモリ | 56,360 KB |
| 最終ジャッジ日時 | 2026-09-28 15:11:21 |
| 合計ジャッジ時間 | 2,864 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")