結果
| 問題 |
No.396 クラス替え
|
| コンテスト | |
| ユーザー |
purple_jwl
|
| 提出日時 | 2016-07-15 23:04:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 756 bytes |
| コンパイル時間 | 1,258 ms |
| コンパイル使用メモリ | 157,280 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-15 04:41:36 |
| 合計ジャッジ時間 | 1,962 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 3 |
ソースコード
#include <bits/stdc++.h>
#define REP(i, x, n) for (int i = x; i < (int)(n); i++)
#define rep(i, n) REP (i, 0, n)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(x) (int)(x.size())
#define popcount(x) __builtin_popcount(x)
#define popcountll(x) __builtin_popcountll(x)
#define uniq(x) x.erase(unique(x.begin(), x.end()), x.end())
#define F first
#define S second
#define mp make_pair
#define eb emplace_back
using namespace std;
typedef long long ll;
const int INF = 1 << 29;
int main() {
int n, m, x, y;
cin >> n >> m >> x >> y;
int a = x % (2 * m);
int b = y % (2 * m);
if (a == b || a + b == 2 * m + 1) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
purple_jwl