結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2021-03-11 22:56:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 1,984 ms |
コンパイル使用メモリ | 191,080 KB |
最終ジャッジ日時 | 2025-01-19 13:39:29 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<n;i++) typedef pair<int,int>P; int main(){ ll h,w,n,k; cin>>h>>w>>n>>k; if((k != n && (h*w)%n ==k)||((k == n) && (h*w)%n ==0)){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }