結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
![]() |
提出日時 | 2025-05-17 17:57:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 270 bytes |
コンパイル時間 | 750 ms |
コンパイル使用メモリ | 59,776 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-05-17 17:57:18 |
合計ジャッジ時間 | 1,888 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 6 |
ソースコード
#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){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }