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