結果

問題 No.1224 I hate Sqrt Inequality
ユーザー betrue12betrue12
提出日時 2020-09-11 21:23:20
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 1,745 ms
コンパイル使用メモリ 193,892 KB
最終ジャッジ日時 2025-01-14 09:49:46
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    int64_t A, B;
    cin >> A >> B;
    B /= gcd(A, B);
    while(B%2 == 0) B /= 2;
    while(B%5 == 0) B /= 5;
    cout << (B > 1 ? "Yes" : "No") << endl;
    return 0;
}
0