結果
| 問題 |
No.1723 [Cherry 3rd Tune *] Dead on
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-29 22:14:38 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 384 bytes |
| コンパイル時間 | 2,118 ms |
| コンパイル使用メモリ | 191,636 KB |
| 最終ジャッジ日時 | 2025-01-25 09:00:35 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 WA * 19 |
ソースコード
#include <bits/stdc++.h>
using std::cin;
using std::cout;
using ll = long long;
ll pow(ll a, ll b) {
ll res = 1;
while (b) {
if (b&1) res *= a;
a *= a;
b >>= 1;
}
return res;
}
int main() {
ll x, a, y, b;
cin >> x >> a >> y >> b;
if (x % y == 0 and b % a == 0) {
b /= a;
if (x % pow(y, b) == 0) puts("Yes");
else puts("No");
}
else puts("No");
return 0;
}