結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
|
提出日時 | 2020-06-20 10:45:47 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 818 ms |
コンパイル使用メモリ | 94,936 KB |
最終ジャッジ日時 | 2025-01-11 08:34:02 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 7 |
ソースコード
#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+1==k){ printf("NO\n"); } else{ printf("YES\n"); } }