結果

問題 No.166 マス埋めゲーム
ユーザー oooooba
提出日時 2021-01-17 20:55:19
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 314 bytes
コンパイル時間 973 ms
コンパイル使用メモリ 91,084 KB
最終ジャッジ日時 2025-01-18 01:56:54
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <optional>
#include <vector>

using namespace std;

int main() {
    int64_t h, w, n, k;
    cin >> h >> w >> n >> k;
    cout << ((h * w) % n == k % n ? "YES" : "NO") << endl;
    return 0;
}
0