結果

問題 No.882 約数倍数
ユーザー 💕💖💞💕💖💞
提出日時 2019-10-15 22:09:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 174 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 8,256 KB
最終ジャッジ日時 2023-08-29 00:41:28
合計ジャッジ時間 1,502 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 15 ms
8,180 KB
testcase_03 WA -
testcase_04 AC 15 ms
8,128 KB
testcase_05 WA -
testcase_06 AC 15 ms
8,180 KB
testcase_07 AC 15 ms
8,124 KB
testcase_08 AC 15 ms
8,192 KB
testcase_09 AC 15 ms
8,220 KB
testcase_10 AC 15 ms
8,088 KB
testcase_11 AC 15 ms
8,136 KB
testcase_12 AC 15 ms
8,212 KB
testcase_13 AC 16 ms
8,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(int,input().split())
import math
#print( math.gcd(A,B))
if 1 in {A,B}:
    print('YES')
elif max({A, B}) >= math.gcd(A,B) != 1:
    print('YES')
else:
    print('NO')
0