結果
問題 |
No.2417 Div Count
|
ユーザー |
|
提出日時 | 2023-08-12 14:23:41 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 143 ms |
コンパイル使用メモリ | 82,520 KB |
実行使用メモリ | 59,360 KB |
最終ジャッジ日時 | 2024-11-19 19:06:45 |
合計ジャッジ時間 | 2,783 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 35 WA * 6 |
ソースコード
N, K = map(int, input().split()) N -= K ans = 0 for i in range(1, int(N ** 0.5) + 1): if N % i == 0: if i <= K and N // i > K and N != i * i: ans += 1 elif N // i > K and N != i * i: ans += 2 elif i * i == N: ans += 1 print(ans)