結果
| 問題 | No.384 マス埋めゲーム2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-17 18:52:15 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 300 bytes |
| 記録 | |
| コンパイル時間 | 865 ms |
| コンパイル使用メモリ | 109,168 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-10 04:36:19 |
| 合計ジャッジ時間 | 1,813 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <iomanip>
#include <algorithm>
#include <cmath>
using namespace std;
using ll = long long;
ll h, w, n, k;
int main()
{
cin >> h >> w >> n >> k;
if ((h + w - 2) % n == k - 1)
cout << "YES";
else
cout << "NO";
cout << endl;
return 0;
}