結果

問題 No.1383 Numbers of Product
ユーザー ayaoniayaoni
提出日時 2021-02-07 20:55:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 809 bytes
コンパイル時間 909 ms
コンパイル使用メモリ 86,512 KB
実行使用メモリ 260,360 KB
最終ジャッジ日時 2023-09-17 19:46:50
合計ジャッジ時間 36,230 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
71,268 KB
testcase_01 AC 91 ms
71,380 KB
testcase_02 AC 91 ms
71,548 KB
testcase_03 AC 90 ms
71,388 KB
testcase_04 AC 91 ms
71,324 KB
testcase_05 AC 90 ms
71,108 KB
testcase_06 AC 92 ms
71,272 KB
testcase_07 AC 809 ms
216,200 KB
testcase_08 WA -
testcase_09 AC 1,000 ms
252,520 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 1,110 ms
252,576 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 91 ms
71,604 KB
testcase_18 AC 92 ms
71,448 KB
testcase_19 AC 91 ms
71,312 KB
testcase_20 AC 91 ms
71,248 KB
testcase_21 AC 91 ms
71,360 KB
testcase_22 AC 91 ms
71,280 KB
testcase_23 AC 92 ms
71,276 KB
testcase_24 AC 91 ms
71,408 KB
testcase_25 AC 91 ms
71,444 KB
testcase_26 AC 90 ms
71,620 KB
testcase_27 WA -
testcase_28 AC 429 ms
171,532 KB
testcase_29 AC 1,054 ms
252,656 KB
testcase_30 AC 1,031 ms
260,168 KB
testcase_31 AC 566 ms
171,724 KB
testcase_32 AC 523 ms
171,484 KB
testcase_33 WA -
testcase_34 AC 576 ms
171,564 KB
testcase_35 AC 982 ms
252,660 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 1,045 ms
260,124 KB
testcase_39 AC 1,061 ms
260,108 KB
testcase_40 AC 1,025 ms
260,020 KB
testcase_41 WA -
testcase_42 AC 1,193 ms
260,180 KB
testcase_43 WA -
testcase_44 AC 1,050 ms
260,076 KB
testcase_45 AC 1,124 ms
259,980 KB
testcase_46 AC 93 ms
71,508 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 90 ms
71,552 KB
testcase_52 AC 91 ms
71,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import defaultdict
sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


N,K,M = MI()

count = defaultdict(int)
for B in range(1,21):
    for A in range(1,10**6+1):
        x = 1
        for k in range(B+1):
            x *= A+k*K
        if x <= N:
            count[x] += 1
        else:
            break

ans = 0
for key in count.keys():
    if count[key] == M:
        ans += 1

print(ans)
0