結果
問題 | No.1532 Different Products |
ユーザー |
![]() |
提出日時 | 2021-06-04 22:24:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,331 ms / 4,000 ms |
コード長 | 239 bytes |
コンパイル時間 | 519 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 101,864 KB |
最終ジャッジ日時 | 2024-11-19 20:59:16 |
合計ジャッジ時間 | 45,796 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 62 |
ソースコード
n,k=map(int,input().split()) d={k:1} for i in range(1,n+1): e={} for j in d: r=j//i if r==0:continue if r in e:e[r]+=d[j] else:e[r]=d[j] for j in e: if j in d:d[j]+=e[j] else:d[j]=e[j] print(sum(d.values())-1)