結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
ull H, W, N, K;
void input() { cin >> H >> W >> N >> K; }

void solve() { cout << ((H * W % N == K % N) ? "YES" : "NO") << endl; }

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  input();
  solve();
  getchar();
}
0