結果
問題 |
No.2417 Div Count
|
ユーザー |
|
提出日時 | 2023-08-12 14:25:10 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 343 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 58,496 KB |
最終ジャッジ日時 | 2024-11-19 19:17:10 |
合計ジャッジ時間 | 3,245 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | AC * 2 WA * 39 |
ソースコード
N, K = map(int, input().split()) N -= K ans = 0 for i in range(1, int(N ** 0.5)): if N % i == 0: if i <= K and N // i > K: ans += 1 elif N // i > K: ans += 2 elif i > K and N // i <= K: ans += 1 if int(N ** 0.5) - (N ** 0.5) < 10 ** 9: ans += 1 print(ans)