結果
| 問題 |
No.2417 Div Count
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-12 13:47:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 230 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 57,856 KB |
| 最終ジャッジ日時 | 2024-11-19 16:10:31 |
| 合計ジャッジ時間 | 3,188 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 WA * 37 |
ソースコード
def main(): n,k=map(int,input().split()) s = n-k d = 1 ans = 0 while d*d <= s: if s % d == 0: if d < k: ans += 1 else: ans += 2 d += 1 if d*d == s: ans -= 1 print(ans) if __name__ == "__main__": main()