結果

問題 No.384 マス埋めゲーム2
ユーザー vjudge1
提出日時 2025-07-16 17:17:17
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 4,718 ms
コンパイル使用メモリ 208,748 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-07-16 17:17:26
合計ジャッジ時間 7,468 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 12 OLE * 1 -- * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
	int T;cin>>T;
	while(T--){
		long long h,w,n,k,s;
		cin>>h>>w>>n>>k;
		s=h-1+w;s=s%n;
		if(s==k||s==0&&k==n)cout<<"YES\n";
		else cout<<"NO\n";
	}
	return 0;
} 
0