結果
問題 | No.384 マス埋めゲーム2 |
ユーザー |
![]() |
提出日時 | 2016-07-01 22:49:02 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 442 bytes |
コンパイル時間 | 941 ms |
コンパイル使用メモリ | 61,476 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 00:51:55 |
合計ジャッジ時間 | 1,669 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <cstdio>#include <iostream>#include <vector>#include <queue>#include <algorithm>#include <numeric>#include <cassert>using namespace std;using ll = long long;constexpr ll TEN(int n) { return (!n) ? 1 : 10 * TEN(n-1); }int main() {int h, w; ll n, k;cin >> h >> w >> n >> k;ll u = h+w-2;if (u % n == k-1) {cout << "YES" << endl;} else {cout << "NO" << endl;}return 0;}