結果
問題 | No.396 クラス替え |
ユーザー |
|
提出日時 | 2016-07-23 00:09:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 187 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-17 11:10:10 |
合計ジャッジ時間 | 1,531 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
a,b = [int(n) for n in input().split(" ")]c = [int(n) for n in input().split(" ")]x,y = cxx = x - 1yy = y - 1if xx // b % 2 == 0:anum = x % belse:anum = ( - (x % b - 1)) % bif yy // b % 2 == 0:bnum = y % belse:bnum = ( - (y % b - 1)) % bif anum == bnum:print("YES")else:print("NO")