結果

問題 No.384 マス埋めゲーム2
ユーザー vjudge1
提出日時 2025-05-16 15:53:22
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 2,761 ms
コンパイル使用メモリ 167,620 KB
実行使用メモリ 16,068 KB
最終ジャッジ日時 2025-05-16 15:53:28
合計ジャッジ時間 5,950 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 12 OLE * 1 -- * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#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-2)%n+1==k) cout<<"YES\n";
		else cout<<"NO\n";
	}
	return 0;
}
0