結果
| 問題 | No.882 約数倍数 |
| コンテスト | |
| ユーザー |
Sege
|
| 提出日時 | 2019-09-15 00:23:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-28 12:38:38 |
| 合計ジャッジ時間 | 2,578 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 5 WA * 5 |
ソースコード
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")
Sege