結果
| 問題 |
No.396 クラス替え
|
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2016-07-15 22:55:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 307 bytes |
| コンパイル時間 | 606 ms |
| コンパイル使用メモリ | 63,104 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 11:05:33 |
| 合計ジャッジ時間 | 1,371 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <iostream>
int main() {
long long n, m, x, y;
std::cin >> n >> m >> x >> y;
x--;
y--;
x %= m * 2;
y %= m * 2;
//std::cout << x << " " << y << std::endl;
if (x == y || x + y == m * 2 - 1) {
std::cout << "YES" << std::endl;
} else {
std::cout << "NO" << std::endl;
}
return 0;
}
hanorver