結果
問題 | No.166 マス埋めゲーム |
ユーザー |
|
提出日時 | 2015-06-01 21:27:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 344 bytes |
コンパイル時間 | 533 ms |
コンパイル使用メモリ | 66,596 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-06 13:16:24 |
合計ジャッジ時間 | 1,222 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <iostream>#include <vector>#include <algorithm>#include <unordered_set>using namespace std;int main() {cin.tie(0);ios::sync_with_stdio(false);long long h, w, n, k;cin >> h >> w >> n >> k;k = n == k ? 0 : k;if (h * w % n == k) cout << "YES" << endl;else cout << "NO" << endl;return 0;}