結果
問題 | No.166 マス埋めゲーム |
ユーザー |
![]() |
提出日時 | 2015-04-26 11:08:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 233 bytes |
コンパイル時間 | 510 ms |
コンパイル使用メモリ | 56,148 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 02:46:15 |
合計ジャッジ時間 | 1,482 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <iostream>#include <algorithm>using namespace std;typedef long long ll;int main(){ll h,w,n,k;cin>>h>>w>>n>>k;ll l = (h*w)%n;if(l==0) l=n;if(k==l) cout<<"YES"<<endl;else cout <<"NO"<<endl;return 0;}