結果

問題 No.384 マス埋めゲーム2
ユーザー vjudge1
提出日時 2025-05-17 16:09:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 1,867 ms
コンパイル使用メモリ 161,132 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-05-17 16:10:03
合計ジャッジ時間 5,255 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
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