結果

問題 No.2051 Divide
ユーザー ytftytft
提出日時 2022-08-23 13:42:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 259 ms
コンパイル使用メモリ 82,092 KB
実行使用メモリ 58,908 KB
最終ジャッジ日時 2024-04-19 04:39:29
合計ジャッジ時間 2,443 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,408 KB
testcase_01 AC 41 ms
52,420 KB
testcase_02 AC 40 ms
52,428 KB
testcase_03 AC 42 ms
52,532 KB
testcase_04 AC 38 ms
51,952 KB
testcase_05 AC 39 ms
53,436 KB
testcase_06 AC 40 ms
52,888 KB
testcase_07 AC 42 ms
52,964 KB
testcase_08 AC 38 ms
53,632 KB
testcase_09 AC 40 ms
52,936 KB
testcase_10 AC 39 ms
52,280 KB
testcase_11 AC 38 ms
52,176 KB
testcase_12 AC 39 ms
52,120 KB
testcase_13 AC 39 ms
52,264 KB
testcase_14 AC 39 ms
52,812 KB
testcase_15 AC 40 ms
53,216 KB
testcase_16 AC 38 ms
53,016 KB
testcase_17 AC 45 ms
58,340 KB
testcase_18 AC 46 ms
58,600 KB
testcase_19 AC 46 ms
58,280 KB
testcase_20 AC 44 ms
58,072 KB
testcase_21 AC 43 ms
58,736 KB
testcase_22 AC 41 ms
58,908 KB
testcase_23 AC 41 ms
57,868 KB
testcase_24 AC 43 ms
58,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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