結果
問題 | No.384 マス埋めゲーム2 |
ユーザー |
|
提出日時 | 2020-05-17 18:52:15 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 1,425 ms |
コンパイル使用メモリ | 92,696 KB |
最終ジャッジ日時 | 2025-01-10 12:44:48 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }