結果

問題 No.882 約数倍数
ユーザー lloyzlloyz
提出日時 2022-04-07 13:37:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 14 ms / 500 ms
コード長 186 bytes
コンパイル時間 1,123 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 8,220 KB
最終ジャッジ日時 2023-08-18 17:24:52
合計ジャッジ時間 1,897 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,772 KB
testcase_01 AC 12 ms
7,956 KB
testcase_02 AC 13 ms
8,052 KB
testcase_03 AC 13 ms
7,860 KB
testcase_04 AC 13 ms
8,160 KB
testcase_05 AC 13 ms
7,804 KB
testcase_06 AC 13 ms
8,180 KB
testcase_07 AC 12 ms
8,096 KB
testcase_08 AC 14 ms
7,824 KB
testcase_09 AC 13 ms
8,048 KB
testcase_10 AC 14 ms
8,220 KB
testcase_11 AC 14 ms
7,772 KB
testcase_12 AC 14 ms
8,004 KB
testcase_13 AC 14 ms
7,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())
f = 1
while f * f <= a:
    if a % f == 0:
        if a % b == 0 or (a // f) % b == 0:
            print("YES")
            exit()
    f += 1
print("NO")
0