結果
| 問題 | 
                            No.2051 Divide
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-10-14 15:27:21 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 222 bytes | 
| コンパイル時間 | 97 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-06-26 12:38:26 | 
| 合計ジャッジ時間 | 4,078 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 22 TLE * 1 | 
ソースコード
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)