結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
![]() |
提出日時 | 2025-05-16 15:52:27 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 2,210 ms |
コンパイル使用メモリ | 170,708 KB |
実行使用メモリ | 10,916 KB |
最終ジャッジ日時 | 2025-05-16 15:52:34 |
合計ジャッジ時間 | 5,981 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 12 OLE * 1 -- * 9 |
ソースコード
#include <bits/stdc++.h> #define int long long using namespace std; int t,h,w,n,k; signed main () { //freopen("game.in","r",stdin); //freopen("game.out","w",stdout); cin>>t; while(t--){ cin>>h>>w>>n>>k; if ((h+w-1)%n==(k%n)) cout<<"YES\n"; else cout<<"NO\n"; } return 0; }