結果

問題 No.166 マス埋めゲーム
ユーザー treeone
提出日時 2016-03-05 16:43:51
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 680 bytes
コンパイル時間 583 ms
コンパイル使用メモリ 73,208 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 14:21:50
合計ジャッジ時間 1,427 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <map>
#include <set>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <stack>
#include <queue>
#include <utility>
#define rep(i,l,n) for(lint i=l;i<n;i++)
#define rer(i,l,n) for(lint i=l;i<=n;i++)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define fi first
#define se second
using namespace std;
typedef long long lint;
typedef vector<int> vi;
typedef vector<lint> vli;
typedef vector<vi> vvi;
typedef pair<int,int> pii;

int main(){
	lint h,w,n,k;
	cin>>h>>w>>n>>k;
	if(h*w%n==k) o("YES");
	else if(k==n && k*w%n==0) o("YES");
	else o("NO");
}
0