結果
問題 |
No.396 クラス替え
|
ユーザー |
![]() |
提出日時 | 2021-02-17 08:16:24 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 180 bytes |
コンパイル時間 | 336 ms |
コンパイル使用メモリ | 82,400 KB |
実行使用メモリ | 53,656 KB |
最終ジャッジ日時 | 2024-09-13 18:52:48 |
合計ジャッジ時間 | 2,103 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 9 |
ソースコード
n,m = map(int,input().split()) x,y = map(int,input().split()) def pos(x): x = (x-1)%(2*m) if x < m: return m else: return 2*m-x print("YES" if pos(x)==pos(y) else "NO")