結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2015-04-25 14:14:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 197 bytes |
コンパイル時間 | 383 ms |
コンパイル使用メモリ | 55,568 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-05 02:19:45 |
合計ジャッジ時間 | 1,137 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 7 |
ソースコード
#include <iostream> using namespace std; int main(){ int h,w; long long int n,k,s; cin>>h>>w>>n>>k; s=(h*w)%n; if(s==0) s+=n; if(s==k) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }