結果
問題 |
No.2051 Divide
|
ユーザー |
|
提出日時 | 2022-08-23 07:05:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 178 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 60,032 KB |
最終ジャッジ日時 | 2024-10-10 14:08:14 |
合計ジャッジ時間 | 2,360 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
import sys input = sys.stdin.readline from collections import * A, B = map(int, input().split()) ans = 0 for d in range(1, int(A**0.5)+1): if A%d==0: if d%B==0: ans += 1 if d!=A//d and (A//d)%B==0: ans += 1 print(ans)