結果
問題 | No.1829 Möbius Tunnelling |
ユーザー |
![]() |
提出日時 | 2022-02-04 22:04:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 202 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-06-11 11:53:16 |
合計ジャッジ時間 | 2,014 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
n=int(input()) a,b,c=map(int,input().split()) n2 = n*2 if a<b: d = n-a else: d = -(a-1) a += d b = (b+d-1)%n2+1 c = (c+n+d-1)%n2+1 if c <= n and b > n: print("Yes") else: print("No")