結果

問題 No.396 クラス替え
ユーザー vjudge1
提出日時 2025-05-16 15:10:16
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 442 bytes
コンパイル時間 1,800 ms
コンパイル使用メモリ 158,936 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-05-16 15:10:19
合計ジャッジ時間 2,391 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define int long long
#define fr first
#define sc second
using namespace std;
int const N=1e6+5;
typedef pair<int,int> pii;
int n,m,sum,cnt,t,ans,x,y;
signed main()
{
//	freopen(".in","r",stdin);
//	freopen(".out","w",stdout);
	ios::sync_with_stdio(0);
	cin.tie(0),cout.tie(0);
    cin>>n>>m>>x>>y;
    int nx=x%(m*2);
    int ny=y%(m*2);
    if(nx==ny||nx+ny==2*m+1)   cout<<"YES";
    else cout<<"NO";
	return 0;
}

0