結果
問題 |
No.882 約数倍数
|
ユーザー |
|
提出日時 | 2022-04-07 13:37:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 500 ms |
コード長 | 186 bytes |
コンパイル時間 | 316 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-28 00:05:57 |
合計ジャッジ時間 | 1,300 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 |
ソースコード
a, b = map(int, input().split()) f = 1 while f * f <= a: if a % f == 0: if a % b == 0 or (a // f) % b == 0: print("YES") exit() f += 1 print("NO")