結果
| 問題 |
No.166 マス埋めゲーム
|
| コンテスト | |
| ユーザー |
wing3196
|
| 提出日時 | 2015-03-19 23:28:41 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 333 bytes |
| コンパイル時間 | 499 ms |
| コンパイル使用メモリ | 65,748 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 23:18:00 |
| 合計ジャッジ時間 | 1,245 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>
#include<string>
#include<cstring>
#include<climits>
#include<functional>
#include<map>
#include<set>
using namespace std;
#define int long long
signed 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;
}
wing3196