結果
| 問題 | No.396 クラス替え |
| コンテスト | |
| ユーザー |
moyashi_senpai
|
| 提出日時 | 2016-07-15 22:50:02 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 563 bytes |
| 記録 | |
| コンパイル時間 | 632 ms |
| コンパイル使用メモリ | 91,648 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-02 22:55:57 |
| 合計ジャッジ時間 | 1,952 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 5 |
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
#include <cmath>
#include <cstring>
#include <numeric>
#include <algorithm>
#include <functional>
#include <array>
#include <map>
using namespace std;
#define Getsign(n) ((n > 0) - (n < 0))
typedef vector<int> Ivec;
typedef pair<int, int> Pos;
int main() {
int n, m, x, y, a,b;
scanf("%d %d %d %d", &n, &m, &x, &y);
x %= 2 * m;
y %= 2 * m;
if ((x - m) >= 1) {
a = x-m*2;
}
else a = x;
if ((y - m) >= 1) {
b = m - (y-m)+1;
}
else b = y;
printf("%s\n", a == b ? "YES" : "NO");
return 0;
}
moyashi_senpai