結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
![]() |
提出日時 | 2025-05-17 17:57:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 588 ms |
コンパイル使用メモリ | 61,924 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-05-17 17:57:46 |
合計ジャッジ時間 | 1,604 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 4 |
ソースコード
#include<iostream> using namespace std; int main() { //freopen("game.in","r",stdin); //freopen("game.out","w",stdout); int h,w,n,k; cin>>h>>w>>n>>k; int a=h-1+w; int ans=a%n; if(ans==k||ans==0&&k==n){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }