結果
| 問題 |
No.396 クラス替え
|
| ユーザー |
|
| 提出日時 | 2020-06-18 01:17:25 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 288 bytes |
| コンパイル時間 | 2,130 ms |
| コンパイル使用メモリ | 192,576 KB |
| 最終ジャッジ日時 | 2025-01-11 05:03:57 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 3 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int solve(int n,int m,int xy){
int ret=xy%(2*m);
if(ret<=m)return ret;
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;
}