結果
| 問題 | 
                            No.166 マス埋めゲーム
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ponponpop
                         | 
                    
| 提出日時 | 2018-09-17 19:21:25 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 648 bytes | 
| コンパイル時間 | 822 ms | 
| コンパイル使用メモリ | 100,060 KB | 
| 最終ジャッジ日時 | 2025-01-06 13:36:20 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | AC * 11 WA * 9 | 
ソースコード
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;
typedef long long unsigned int ll;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define ALL(a)  (a).begin(),(a).end()
int main() {
    int h,w,n,k;
    cin>>h>>w>>n>>k;
    if((h*w)%n==k)
        cout<<"YES"<<"\n";
    else
        cout<<"NO"<<"\n";
}
            
            
            
        
            
ponponpop