結果
問題 | No.166 マス埋めゲーム |
ユーザー |
👑 |
提出日時 | 2019-03-31 10:02:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 651 ms |
コンパイル使用メモリ | 72,160 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 05:58:36 |
合計ジャッジ時間 | 1,535 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <cstdio> #include <cstdlib> #include <cstddef> #include <vector> #include <algorithm> #include <cmath> #include <string> #include <iostream> #include <iomanip> int main(void) { long h, w, n, k; std::cin >> h >> w >> n >> k; if(k % n == h * w % n){ std::cout << "YES" << std::endl; } else { std::cout << "NO" << std::endl; } return 0; }