結果
問題 | No.166 マス埋めゲーム |
ユーザー |
![]() |
提出日時 | 2015-08-27 00:06:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 433 bytes |
コンパイル時間 | 588 ms |
コンパイル使用メモリ | 65,188 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 14:46:32 |
合計ジャッジ時間 | 1,226 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <iostream> #include <numeric> #include <algorithm> #include <string> #include <vector> #include <cmath> #include <queue> #define rep(i, a) FOR(i, 0, a) #define FOR(i, a, b) for(int i = a; i < b; ++i) typedef long long ll; typedef unsigned long long ull; typedef std::pair<int, int> P; int main(){ ull h, w, n, k; std::cin >> h >> w >> n >> k; std::cout << (h * w % n == k % n ? "YES" : "NO") << std::endl; return 0; }