結果
| 問題 |
No.384 マス埋めゲーム2
|
| コンテスト | |
| ユーザー |
femto
|
| 提出日時 | 2016-07-11 00:18:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 358 bytes |
| コンパイル時間 | 616 ms |
| コンパイル使用メモリ | 66,272 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 10:33:42 |
| 合計ジャッジ時間 | 1,379 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <cstring>
#include <string>
#include <algorithm>
#include <iomanip>
using namespace std;
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll H, W, N, K;
cin >> H >> W >> N >> K;
H += W - 2;
if(H % N == K - 1) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
femto