結果
| 問題 |
No.2417 Div Count
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-12 14:57:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 1,653 ms |
| コンパイル使用メモリ | 81,600 KB |
| 実行使用メモリ | 116,532 KB |
| 最終ジャッジ日時 | 2024-11-19 22:21:59 |
| 合計ジャッジ時間 | 28,512 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 20 TLE * 8 |
ソースコード
n,k = map(int, input().split())
ans = 0
def divisors(num):
divisors = []
for i in range(k+1, num//2+1):
if(num-k) % i == 0:
divisors.append(i)
divisors.append(num)
return divisors
ans = divisors(n)
print(len(ans))