結果

問題 No.166 マス埋めゲーム
ユーザー stack9996
提出日時 2015-08-27 00:05:50
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 546 ms
コンパイル使用メモリ 65,236 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 14:46:31
合計ジャッジ時間 1,291 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <numeric>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <queue>

#define rep(i, a) FOR(i, 0, a)
#define FOR(i, a, b) for(int i = a; i < b; ++i)

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