結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
![]() |
提出日時 | 2025-05-16 15:46:54 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 5,888 ms |
コンパイル使用メモリ | 167,756 KB |
実行使用メモリ | 16,068 KB |
最終ジャッジ日時 | 2025-05-16 15:47:04 |
合計ジャッジ時間 | 6,271 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }