結果

問題 No.384 マス埋めゲーム2
ユーザー femtofemto
提出日時 2016-07-01 22:43:20
言語 C++11
(gcc 13.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 364 bytes
コンパイル時間 702 ms
コンパイル使用メモリ 66,384 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-12 00:48:26
合計ジャッジ時間 1,346 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <cstring>
#include <string>
#include <algorithm>
#include <iomanip>
using namespace std;
typedef long long ll;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	ll H, W, N, K;
	cin >> H >> W >> N >> K;

	H += W - 1;
	if(H % N == K || N == 1) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}
}
0