結果
| 問題 |
No.2417 Div Count
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-12 14:40:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 408 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 21,504 KB |
| 最終ジャッジ日時 | 2024-11-19 20:49:57 |
| 合計ジャッジ時間 | 57,598 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 TLE * 18 |
ソースコード
def make_divisors(n):
lower_divisors , upper_divisors = [], []
i = n
while i*i >= n:
if n % i == K:
lower_divisors.append(i)
if i != n // i:
if n // i > K :
upper_divisors.append(n//i)
i -= 1
return lower_divisors + upper_divisors[::-1]
N , K = map(int,input().split())
#print(make_divisors(N))
print(len(make_divisors(N)))