結果
| 問題 | No.2417 Div Count |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-12 14:52:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 65,408 KB |
| 最終ジャッジ日時 | 2026-05-14 02:40:11 |
| 合計ジャッジ時間 | 6,075 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 1 |
| other | AC * 11 WA * 17 RE * 2 TLE * 1 -- * 10 |
ソースコード
n,k = map(int, input().split())
ans = 0
def divisors(num):
divisors = []
for i in range(k, num//2+1):
if num % i == 0:
divisors.append(i)
divisors.append(num)
return divisors
ans = divisors(n-k)
print(len(ans))