結果
問題 | No.166 マス埋めゲーム |
ユーザー |
![]() |
提出日時 | 2015-03-19 23:36:12 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 1,178 ms |
コンパイル使用メモリ | 159,252 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 23:20:52 |
合計ジャッジ時間 | 1,905 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){long long int h,w,n,k;cin>>h>>w>>n>>k;if(n==k)k=0;if(h*w%n==k)cout<<"YES"<<endl;else cout<<"NO"<<endl;}