結果

問題 No.1224 I hate Sqrt Inequality
ユーザー crom
提出日時 2020-09-11 22:28:18
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 1,339 ms
コンパイル使用メモリ 158,780 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-27 15:45:19
合計ジャッジ時間 2,031 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 5 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
    long long a, b;
    cin >> a >> b;
    if(b % 2 == 0 || a % b == 0) {
        cout << "Yes" << endl;
    } else {
        while(b % 5 == 0) {
            b /= 5;
        }
        if(b == 1) {
            cout << "Yes";
        } else {
            cout << "No" << endl;
        }
    }
    
    return 0;
}
0