結果
問題 |
No.396 クラス替え
|
ユーザー |
![]() |
提出日時 | 2017-07-25 18:30:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-09 17:15:17 |
合計ジャッジ時間 | 1,350 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 1 |
ソースコード
#class change N,M=(int(i) for i in input().split()) X,Y=(int(i) for i in input().split()) def c(nu,cl): cy=nu//cl nu%=cl # if nu==0: # nu+=cl if cy%2==1: nu*=-1 nu+=cl+1 if nu>cl: nu=cl if nu==0: nu=cl return nu if c(X,M)==c(Y,M): print("YES") else: print("NO")