結果
問題 | No.384 マス埋めゲーム2 |
ユーザー |
![]() |
提出日時 | 2025-05-17 18:00:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 270 bytes |
コンパイル時間 | 951 ms |
コンパイル使用メモリ | 60,216 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-05-17 18:00:11 |
合計ジャッジ時間 | 1,599 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }