結果
| 問題 |
No.384 マス埋めゲーム2
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-05-17 17:56:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 314 bytes |
| コンパイル時間 | 940 ms |
| コンパイル使用メモリ | 60,496 KB |
| 実行使用メモリ | 16,064 KB |
| 最終ジャッジ日時 | 2025-05-17 17:56:30 |
| 合計ジャッジ時間 | 5,441 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | WA * 10 RE * 1 TLE * 2 -- * 9 |
ソースコード
#include<iostream>
using namespace std;
int main()
{
//freopen("game.in","r",stdin);
//freopen("game.out","w",stdout);
int t;
cin>>t;
for(int i=1;i<=t;i++){
int h,w,n,k;
cin>>h>>w>>n>>k;
int a=h-1+w;
int ans=a%n;
if(ans==k){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
return 0;
}
vjudge1