結果
問題 | No.384 マス埋めゲーム2 |
ユーザー |
![]() |
提出日時 | 2016-07-01 22:35:30 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 1,304 ms |
コンパイル使用メモリ | 158,652 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 00:42:48 |
合計ジャッジ時間 | 2,113 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define rep(i,n) for(int i = 0 ; i < (n) ; i++)#define int long longsigned main(){ios_base::sync_with_stdio(false);int H,W,N,K;cin >> H >> W >> N >> K;if( (H+W-2) % N == K-1 ) cout << "YES" << endl;else cout << "NO" << endl;}