結果
問題 | No.166 マス埋めゲーム |
ユーザー |
![]() |
提出日時 | 2016-07-16 11:15:59 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 361 bytes |
コンパイル時間 | 1,255 ms |
コンパイル使用メモリ | 157,532 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 13:41:17 |
合計ジャッジ時間 | 2,365 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;typedef vector<int> vi;typedef pair<int, int> pii;#define pb push_back#define mp make_pair#define fi first#define se secondint main(){ll h,w,a,b;cin>>h>>w>>a>>b;h*=w;if(h%a==0&&a==b)cout<<"YES"<<endl;else if(h%a&&h%a==b)cout<<"YES"<<endl;else cout<<"NO"<<endl;return 0;}