結果
| 問題 | No.396 クラス替え |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-05-16 15:13:01 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 2,012 ms |
| コンパイル使用メモリ | 331,468 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-07-10 17:33:13 |
| 合計ジャッジ時間 | 5,570 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 20 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n,m,x,y;
string ans[]={"NO","YES"};
int main(){
freopen("class.in","r",stdin);
freopen("class.out","w",stdout);
cin>>n>>m>>x>>y;
x%=(m*2),y%=(m*2);
cout<<ans[(x==y||(x+y==m*2+1))];
}
vjudge1