結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2015-03-19 23:24:18 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 308 bytes |
コンパイル時間 | 534 ms |
コンパイル使用メモリ | 65,620 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 23:13:46 |
合計ジャッジ時間 | 1,236 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 7 |
ソースコード
#include<iostream> #include<cstdio> #include<algorithm> #include<vector> #include<string> #include<cstring> #include<climits> #include<functional> #include<map> #include<set> using namespace std; int main(){ int H,W,N,K; cin>>H>>W>>N>>K; if((H*W%N-1+N)%N==K-1) puts("YES"); else puts("NO"); return 0; }