結果

問題 No.396 クラス替え
ユーザー taba
提出日時 2017-05-19 04:48:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
MLE  
実行時間 -
コード長 459 bytes
コンパイル時間 775 ms
コンパイル使用メモリ 108,780 KB
実行使用メモリ 784,004 KB
最終ジャッジ日時 2024-09-18 21:44:20
合計ジャッジ時間 7,014 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 RE * 2 MLE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cassert>
#include <random>
#include <vector>
#include <algorithm>
#include <array>
#include <functional>
#include <utility>
#include <regex>
#include <tuple>
#include <map>

using namespace std;

int main(){
	int64_t n,m,x,y;
	-scanf("%ld%ld%ld%ld",&n,&m,&x,&y);
	x--;y--;
	vector<int> c(m*2);
	for(int i=0;i<m;i++){
		c[i]=c[m*2-i-1]=i;
	}
	puts(c[x%(m*2)]==c[y%(m*2)]?"YES":"NO");
	return 0;
}
0