結果
問題 | No.166 マス埋めゲーム |
ユーザー |
|
提出日時 | 2020-06-20 10:47:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 21 ms / 1,000 ms |
コード長 | 449 bytes |
コンパイル時間 | 815 ms |
コンパイル使用メモリ | 95,332 KB |
最終ジャッジ日時 | 2025-01-11 08:34:15 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <iostream>#include <vector>#include <algorithm>#include <set>#include <map>#include <math.h>#include <deque>#include <queue>using namespace std;typedef long long int ll;typedef unsigned long long int ull;int main(){cin.tie(nullptr);ios::sync_with_stdio(false);ll h,w,n,k; cin >> h >> w >> n >> k;h=h*w%n;if(h==0)h=n;if(h!=k){printf("NO\n");}else{printf("YES\n");}}