結果

問題 No.384 マス埋めゲーム2
ユーザー kpinkcat
提出日時 2023-12-08 23:01:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 364 bytes
コンパイル時間 846 ms
コンパイル使用メモリ 101,784 KB
最終ジャッジ日時 2025-02-18 09:39:48
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<list>
#include<queue>
#include<math.h>
#include<bitset>
using ll = long long;
using namespace std;

int main(){
    int h, w, n, k, t;
    cin >> h >> w >> n >> k;
    t = (h+w-1)%n;
    if (!t) t = n;
    cout << ((t == k) ? "YES" : "NO") << endl;
}
0