結果
問題 | No.396 クラス替え |
ユーザー |
![]() |
提出日時 | 2016-07-15 22:43:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 241 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-17 10:46:00 |
合計ジャッジ時間 | 1,481 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
N, M = [int(t) for t in input().split(' ')] X, Y = [int(t)-1 for t in input().split(' ')] x = X % M y = Y % M if (X // M) & 1 == 1: x = M - 1 - x if (Y // M) & 1 == 1: y = M - 1 - y if x == y: print('YES') else: print('NO')