結果

問題 No.882 約数倍数
ユーザー 💕💖💞💕💖💞
提出日時 2019-10-15 22:09:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 174 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-06-09 19:09:01
合計ジャッジ時間 1,146 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 27 ms
10,880 KB
testcase_03 WA -
testcase_04 AC 25 ms
10,880 KB
testcase_05 WA -
testcase_06 AC 26 ms
11,008 KB
testcase_07 AC 25 ms
10,880 KB
testcase_08 AC 27 ms
10,880 KB
testcase_09 AC 25 ms
10,880 KB
testcase_10 AC 25 ms
10,880 KB
testcase_11 AC 27 ms
10,880 KB
testcase_12 AC 26 ms
10,880 KB
testcase_13 AC 25 ms
10,880 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