結果
問題 |
No.396 クラス替え
|
ユーザー |
![]() |
提出日時 | 2025-07-16 17:15:12 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 4,166 ms |
コンパイル使用メモリ | 209,512 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-07-16 17:15:17 |
合計ジャッジ時間 | 5,096 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 3 |
ソースコード
#include<bits/stdc++.h> using namespace std; typedef long long ll; ll n,m,x,y; string ans[]={"NO","YES"}; int main(){ cin>>n>>m>>x>>y; x%=(m*2),y%=(m*2); cout<<ans[(x==y||(x+y==m*2+1))]; }