結果
| 問題 | No.396 クラス替え |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2017-05-19 05:07:41 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 451 bytes |
| コンパイル時間 | 835 ms |
| コンパイル使用メモリ | 107,204 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-18 21:47:14 |
| 合計ジャッジ時間 | 1,639 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#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--;
x=x%(m*2);
if(x>=m){
x=m*2-x-1;
}
y=y%(m*2);
if(y>=m){
y=m*2-y-1;
}
puts(x==y?"YES":"NO");
return 0;
}
taba