結果
| 問題 | No.2051 Divide |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-14 15:27:21 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 1,518 ms / 2,000 ms |
| コード長 | 222 bytes |
| 記録 | |
| コンパイル時間 | 436 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-13 05:38:45 |
| 合計ジャッジ時間 | 5,243 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
a,b=list(map(int,input().split()))
if a%b!=0:
print(0)
else:
i=2
c=1
while (a//b)>=i:
n=0
while (a//b)%i==0:
a//=i
n+=1
c*=(n+1)
i+=1
print(c)