結果

問題 No.2417 Div Count
ユーザー NakLon131
提出日時 2023-08-12 14:13:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 82,112 KB
実行使用メモリ 58,880 KB
最終ジャッジ日時 2024-11-19 17:54:58
合計ジャッジ時間 3,260 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 40 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
val = n - k

def divisors(val):
	s = set()
	i = 1
	while(i**2 <= val):
		if val % i == 0:
			s.add(i)
			s.add(val // i)
		i += 1
	res = list(s)
	res.sort()
	return res

ans_l = divisors(val)
ans = 0
for i in ans_l:
	if i >= k: ans += 1
print(ans)
0