結果
問題 |
No.1723 [Cherry 3rd Tune *] Dead on
|
ユーザー |
|
提出日時 | 2021-10-29 22:04:09 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 2,432 ms |
コンパイル使用メモリ | 243,804 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-07 11:21:59 |
合計ジャッジ時間 | 3,624 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 WA * 19 |
ソースコード
#include <bits/stdc++.h> using std::cin; using std::cout; using ll = long long; int main() { ll x, a, y, b; cin >> x >> a >> y >> b; if (x % y == 0 and b % a == 0) { b /= a; if (x % (ll)pow(y, b) == 0) puts("Yes"); else puts("No"); } else puts("No"); return 0; }