結果

問題 No.2051 Divide
コンテスト
ユーザー ytft
提出日時 2022-08-23 13:42:57
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 36 ms / 2,000 ms
+ 741µs
コード長 165 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 89 ms
コンパイル使用メモリ 64,932 KB
実行使用メモリ 57,948 KB
最終ジャッジ日時 2026-10-20 06:28:26
合計ジャッジ時間 2,817 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def divisors(x):
	test=1
	ans=0
	while test**2<x:
		ans+=2*(x%test==0)
		test+=1
	return ans+(test**2==x)
A,B=map(int,input().split())
print(divisors(A//B)*(A%B==0))
0