結果
問題 | No.166 マス埋めゲーム |
ユーザー |
|
提出日時 | 2020-09-16 17:38:02 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 370 bytes |
コンパイル時間 | 1,675 ms |
コンパイル使用メモリ | 194,400 KB |
最終ジャッジ日時 | 2025-01-14 15:15:42 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ull = unsigned long long;ull H, W, N, K;void input() { cin >> H >> W >> N >> K; }void solve() {string ans = "YES";ull chk = H * W % N;if (chk == 0) chk = N;if (chk != K) ans = "NO";cout << ans << endl;}int main() {ios::sync_with_stdio(false);cin.tie(0);input();solve();getchar();}