結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2023-08-08 14:56:49 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 343 bytes |
コンパイル時間 | 781 ms |
コンパイル使用メモリ | 103,532 KB |
最終ジャッジ日時 | 2025-02-16 00:06:29 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 7 |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<cctype> #include<set> #include<bitset> #include<math.h> #include<map> #include<queue> #include<iomanip> using namespace std; int main(){ int h, w, n, k, r; cin >> h >> w >> n >> k; r = (h*w)%n; cout << ((r == k || (r == 0 && n == k)) ? "YES" : "NO") << endl; }