結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
![]() |
提出日時 | 2025-05-18 21:29:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 1,634 ms |
コンパイル使用メモリ | 191,240 KB |
実行使用メモリ | 11,296 KB |
最終ジャッジ日時 | 2025-05-18 21:30:05 |
合計ジャッジ時間 | 5,260 ms |
ジャッジサーバーID (参考情報) |
judge5 / 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); printf("%s\n",((h+w-2)%n+1==k)?"YES":"NO"); } return 0; }