結果

問題 No.882 約数倍数
ユーザー SegeSege
提出日時 2019-09-15 00:23:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 8,024 KB
最終ジャッジ日時 2023-09-21 03:58:25
合計ジャッジ時間 1,113 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 16 ms
7,804 KB
testcase_03 WA -
testcase_04 AC 15 ms
7,844 KB
testcase_05 WA -
testcase_06 AC 15 ms
7,884 KB
testcase_07 AC 16 ms
7,960 KB
testcase_08 WA -
testcase_09 AC 16 ms
7,816 KB
testcase_10 AC 15 ms
7,960 KB
testcase_11 WA -
testcase_12 AC 15 ms
7,812 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
flag=False
if (a%2)*(b%2)!=1:
    print("YES")
else:
    for i in range(3,min(a,b)+1,2):
        if a%i==0 and b%i==0:
            flag=True
            break
    if flag:
        print("YES")
    else:
        print("NO")
0