結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int n,m,x,y; 
signed main ()
{
	cin>>n>>m;
	cin>>x>>y;
	if (x>=2*m) x%=2*m;
	if (y>=2*m) y%=2*m;
	if (x==0) x+=m;
	if (y==0) y+=m;
	if (x==y||x+y==2*m+1) cout<<"YES\n";
	else cout<<"NO\n";
	return 0;
}
0