結果

問題 No.1532 Different Products
ユーザー chineristACchineristAC
提出日時 2021-05-02 17:30:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 78,112 KB
最終ジャッジ日時 2023-09-28 08:04:48
合計ジャッジ時間 34,299 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,624 KB
testcase_01 AC 210 ms
76,772 KB
testcase_02 AC 68 ms
76,132 KB
testcase_03 AC 63 ms
71,624 KB
testcase_04 AC 64 ms
71,644 KB
testcase_05 AC 61 ms
71,708 KB
testcase_06 AC 68 ms
76,344 KB
testcase_07 AC 70 ms
76,384 KB
testcase_08 AC 73 ms
76,400 KB
testcase_09 AC 128 ms
76,940 KB
testcase_10 AC 222 ms
77,168 KB
testcase_11 AC 194 ms
77,136 KB
testcase_12 AC 428 ms
77,576 KB
testcase_13 AC 320 ms
77,740 KB
testcase_14 AC 676 ms
77,584 KB
testcase_15 AC 126 ms
77,788 KB
testcase_16 AC 203 ms
76,964 KB
testcase_17 AC 216 ms
77,320 KB
testcase_18 AC 203 ms
77,332 KB
testcase_19 AC 417 ms
77,812 KB
testcase_20 AC 699 ms
78,028 KB
testcase_21 AC 270 ms
77,136 KB
testcase_22 AC 309 ms
77,780 KB
testcase_23 AC 249 ms
77,592 KB
testcase_24 AC 635 ms
77,624 KB
testcase_25 AC 368 ms
77,276 KB
testcase_26 AC 114 ms
76,568 KB
testcase_27 AC 324 ms
76,996 KB
testcase_28 AC 277 ms
77,004 KB
testcase_29 AC 231 ms
77,032 KB
testcase_30 AC 408 ms
77,380 KB
testcase_31 AC 429 ms
77,344 KB
testcase_32 AC 473 ms
77,304 KB
testcase_33 AC 384 ms
76,912 KB
testcase_34 AC 605 ms
77,860 KB
testcase_35 AC 481 ms
77,308 KB
testcase_36 AC 578 ms
77,784 KB
testcase_37 AC 152 ms
76,416 KB
testcase_38 AC 619 ms
77,356 KB
testcase_39 AC 549 ms
77,352 KB
testcase_40 AC 562 ms
77,636 KB
testcase_41 AC 775 ms
78,112 KB
testcase_42 AC 699 ms
77,936 KB
testcase_43 AC 725 ms
77,604 KB
testcase_44 AC 784 ms
77,676 KB
testcase_45 AC 786 ms
77,864 KB
testcase_46 AC 766 ms
78,052 KB
testcase_47 AC 803 ms
77,852 KB
testcase_48 AC 783 ms
77,972 KB
testcase_49 AC 787 ms
77,884 KB
testcase_50 AC 797 ms
77,868 KB
testcase_51 AC 805 ms
77,876 KB
testcase_52 AC 788 ms
77,920 KB
testcase_53 AC 819 ms
78,040 KB
testcase_54 AC 789 ms
77,868 KB
testcase_55 AC 819 ms
78,100 KB
testcase_56 AC 784 ms
77,820 KB
testcase_57 AC 777 ms
77,836 KB
testcase_58 AC 794 ms
77,900 KB
testcase_59 AC 754 ms
78,008 KB
testcase_60 AC 812 ms
77,892 KB
testcase_61 WA -
testcase_62 AC 61 ms
71,764 KB
testcase_63 AC 790 ms
77,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
assert 1<=N<=200
assert 1<=K<=10**10
M = min(K,int(K**.5)+1)

a,A = [1]*(M+1),[1]*(M+1)

def cum(i):
    if 1<=i<=M:
        return A[i]
    return a[K//i]

for n in range(1,N+1):
    for i in range(1,M+1):
        A[i] += cum(i*n)
    for i in range(M,n-1,-1):
        a[i] += a[i//n]

print((A[1]-1))
0