結果
| 問題 |
No.396 クラス替え
|
| ユーザー |
|
| 提出日時 | 2020-06-18 01:21:44 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 2,099 ms |
| コンパイル使用メモリ | 192,436 KB |
| 最終ジャッジ日時 | 2025-01-11 05:04:07 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 10 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int solve(int n,int m,int xy){
int ret=xy%(2*m);
if(ret<=m)return 1;
else return m*2-ret+1;
}
int main(){
cin.tie(0),ios::sync_with_stdio(false);
int n,m,x,y; cin>>n>>m>>x>>y;
cout<<(solve(n,m,x)==solve(n,m,y)?"YES"s:"NO"s)<<"\n"s;
}