結果
| 問題 | No.1532 Different Products |
| コンテスト | |
| ユーザー |
kozy
|
| 提出日時 | 2021-06-04 20:41:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 1,734 ms / 4,000 ms |
| コード長 | 334 bytes |
| コンパイル時間 | 202 ms |
| コンパイル使用メモリ | 82,380 KB |
| 実行使用メモリ | 101,856 KB |
| 最終ジャッジ日時 | 2024-11-19 10:06:00 |
| 合計ジャッジ時間 | 55,678 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 62 |
ソースコード
N,K=map(int,input().split())
c=dict()
c[K]=1
ans=0
for i in range(1,N+1):
c2=dict()
for j in c:
s=j//i
if s==0:
continue
else:
if s in c2:
c2[s]+=c[j]
else:
c2[s]=c[j]
for j in c2:
if j in c:
c[j]+=c2[j]
else:
c[j]=c2[j]
for i in c:
ans+=c[i]
ans-=1
print(ans)
kozy