結果
| 問題 |
No.384 マス埋めゲーム2
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-05-18 21:32:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| コンパイル時間 | 1,799 ms |
| コンパイル使用メモリ | 192,952 KB |
| 実行使用メモリ | 16,068 KB |
| 最終ジャッジ日時 | 2025-05-18 21:32:33 |
| 合計ジャッジ時間 | 5,566 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | WA * 12 OLE * 1 -- * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%lld%lld%lld%lld",&h,&w,&n,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#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--){
scanf("%lld%lld%lld%lld",&h,&w,&n,&k);
if((h+w-2)%n+1==k)printf("YES\n");
else printf("NO\n");
}
return 0;
}
vjudge1