結果

問題 No.1383 Numbers of Product
ユーザー NaHCO314NaHCO314
提出日時 2021-03-15 23:43:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,816 KB
実行使用メモリ 170,252 KB
最終ジャッジ日時 2024-04-25 02:52:30
合計ジャッジ時間 20,472 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,352 KB
testcase_01 AC 35 ms
51,840 KB
testcase_02 AC 35 ms
52,096 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 35 ms
51,968 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 516 ms
160,780 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 35 ms
51,840 KB
testcase_18 AC 36 ms
52,480 KB
testcase_19 AC 36 ms
52,096 KB
testcase_20 AC 35 ms
51,840 KB
testcase_21 AC 35 ms
51,968 KB
testcase_22 WA -
testcase_23 AC 35 ms
51,968 KB
testcase_24 WA -
testcase_25 AC 34 ms
51,840 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 52 ms
66,304 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 36 ms
51,968 KB
testcase_32 AC 156 ms
114,176 KB
testcase_33 WA -
testcase_34 AC 41 ms
60,160 KB
testcase_35 AC 654 ms
169,616 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 734 ms
169,744 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 AC 35 ms
51,840 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k,m=map(int,input().split())
big2={}
for b in range(3,20):
 i=1
 while 1:
  x=1
  for j in range(b):x*=i+j*k
  if x>n:break
  big2.setdefault(x,0);big2[x]+=1;i+=1
count_2=0
ng=10**9
while-~count_2<ng:
 m=count_2+ng>>1
 if(m+k)*m>n:ng=m
 else:count_2=m
for i in big2:y=round(-k/2+((k/2)**2+i)**0.5);g=y*(y+k)==i;big2[i]+=g;count_2-=g
print(sum(big2[i]==m for i in big2)+[0,count_2][m==1])
0