結果

問題 No.396 クラス替え
ユーザー O2MTO2MT
提出日時 2020-08-16 17:42:45
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-08-01 19:22:06
合計ジャッジ時間 1,359 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,720 KB
testcase_01 AC 16 ms
7,772 KB
testcase_02 AC 16 ms
7,960 KB
testcase_03 AC 17 ms
7,804 KB
testcase_04 AC 16 ms
7,800 KB
testcase_05 WA -
testcase_06 AC 15 ms
7,848 KB
testcase_07 WA -
testcase_08 AC 16 ms
7,852 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,784 KB
testcase_11 AC 16 ms
7,788 KB
testcase_12 AC 16 ms
7,788 KB
testcase_13 AC 16 ms
7,816 KB
testcase_14 AC 16 ms
7,780 KB
testcase_15 AC 16 ms
7,736 KB
testcase_16 AC 16 ms
7,972 KB
testcase_17 AC 16 ms
7,788 KB
testcase_18 WA -
testcase_19 AC 15 ms
7,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
X,Y = map(int,input().split())

MX,MY = X%(2*M),Y%(2*M)

if MX == MY or MX == M-MY%M+1:
  ans = "YES"
else:
  ans = "NO"

print(ans)
0