結果
問題 |
No.396 クラス替え
|
ユーザー |
![]() |
提出日時 | 2017-07-25 18:20:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-09 17:15:09 |
合計ジャッジ時間 | 1,370 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 3 |
ソースコード
#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 return nu if c(X,M)==c(Y,M): print("YES") else: print("NO")