結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
![]() |
提出日時 | 2016-07-01 22:58:35 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 54,504 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 01:02:30 |
合計ジャッジ時間 | 1,248 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 3 |
ソースコード
#include <iostream> using namespace std; int main (void) { int H, W, N, K, ans = 0; cin.tie(0); ios::sync_with_stdio(false); cin >> H >> W >> N >> K; ans = (H + W - 1) % N; if (ans == 0) ans += N; if (ans == K) cout << "YES\n"; else cout << "NO\n"; return 0; }