結果

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define ll long long 
#define pb push_back
#define fr first
#define sc second
typedef vector<int> Vi;
typedef pair<int,int> Pii;
typedef pair<int,Pii> Pip; 
const int INF = (1<<30);
const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};

int main()
{
  int h, w, n, k;
  cin >> h >> w >> n >> k;

  int tmp = h * w % n;
  if( tmp == 0 ) tmp = n;
  if( tmp == k ) cout << "YES" << endl;
  else cout << "NO" << endl;
}
0