結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
![]() |
提出日時 | 2025-05-20 21:25:05 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 554 bytes |
コンパイル時間 | 2,759 ms |
コンパイル使用メモリ | 274,064 KB |
実行使用メモリ | 16,072 KB |
最終ジャッジ日時 | 2025-05-20 21:25:16 |
合計ジャッジ時間 | 6,171 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 12 OLE * 1 -- * 9 |
ソースコード
#include <bits/stdc++.h> #define int long long //#define USE_FREOPEN #define MUL_TEST #define FILENAME "game" using namespace std; void solve() { int h, w, n, k; cin >> h >> w >> n >> k; if ((k % n) == ((h + w - 1) % n)) cout << "YES\n"; else cout << "NO\n"; } signed main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); #ifdef USE_FREOPEN freopen(FILENAME ".in","r",stdin); freopen(FILENAME ".out","w",stdout); #endif int _ = 1; #ifdef MUL_TEST cin >> _; #endif while (_--) solve(); _^=_; return 0^_^0; }