結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2016-05-25 14:01:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 534 bytes |
コンパイル時間 | 865 ms |
コンパイル使用メモリ | 94,212 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 05:09:12 |
合計ジャッジ時間 | 1,808 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <vector> #include <string> #include <algorithm> #include <numeric> #include <iostream> #include <cstdlib> #include <cstring> #include <cmath> #include <utility> #include <list> #include <functional> #include <queue> #include <map> #include <iterator> #include <iomanip> #include <complex> #include <cctype> using namespace std; using ull = unsigned long long; using ll = long long; int main() { ull h,w,n,k; cin >> h >> w >> n >> k; if(h*w % n == k %n) cout << "YES" << endl; else cout << "NO" << endl; }