結果
| 問題 | No.473 和と積の和 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-19 14:09:50 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 269 bytes |
| 記録 | |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 57,216 KB |
| 最終ジャッジ日時 | 2026-04-06 10:53:31 |
| 合計ジャッジ時間 | 5,226 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 TLE * 1 |
| other | -- * 43 |
ソースコード
N,X = map(int,input().split())
ue = 10 ** 5
def calc(n = N,inf = 2,x = X + 1):
if inf > x:return 0
if n == 1:
return 1
ans = 0
for i in range(inf,ue):
if x % i == 0:
ans += calc(n - 1,i,x // i)
return ans
print(calc())