結果
| 問題 |
No.882 約数倍数
|
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2019-10-15 22:09:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 174 bytes |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-30 17:44:47 |
| 合計ジャッジ時間 | 1,645 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 WA * 4 |
ソースコード
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')
💕💖💞