結果
| 問題 |
No.384 マス埋めゲーム2
|
| コンテスト | |
| ユーザー |
tatsukawa
|
| 提出日時 | 2016-07-04 19:36:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 355 bytes |
| コンパイル時間 | 1,893 ms |
| コンパイル使用メモリ | 158,356 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 20:11:29 |
| 合計ジャッジ時間 | 2,638 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
#define REP(i,l,u) for(int (i)=(int)(l);(i)<(int)(u);++(i))
using namespace std;
typedef int64_t ll;
const int INF = 1e8;
const double EPS = 1e-10;
int main() {
ios_base::sync_with_stdio(false);
std::cin.tie(0);
ll H, W, N, K;
cin >> H >> W >> N >> K;
cout << (((H+W-1)-K)%N==0 ? "YES" : "NO") << endl;
}
tatsukawa