結果
| 問題 | 
                            No.384 マス埋めゲーム2
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-02-23 09:31:28 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 171 bytes | 
| コンパイル時間 | 1,492 ms | 
| コンパイル使用メモリ | 164,448 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-01 09:56:20 | 
| 合計ジャッジ時間 | 2,390 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | AC * 6 WA * 16 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
long long H,W,K,N;
cin>>H>>W>>N>>K;
long long answer=(H+W-2)%(N+1);
if(answer==K)cout<<"YES";
else cout<<"NO";
}