結果

問題 No.1383 Numbers of Product
ユーザー umezoumezo
提出日時 2021-02-07 22:23:15
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 468 bytes
コンパイル時間 2,302 ms
コンパイル使用メモリ 204,876 KB
実行使用メモリ 18,560 KB
最終ジャッジ日時 2023-09-17 22:30:15
合計ジャッジ時間 7,523 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
4,380 KB
testcase_01 AC 5 ms
4,380 KB
testcase_02 AC 5 ms
4,380 KB
testcase_03 AC 6 ms
4,380 KB
testcase_04 AC 7 ms
4,376 KB
testcase_05 AC 7 ms
4,380 KB
testcase_06 AC 7 ms
4,380 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 96 ms
17,852 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 98 ms
18,304 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 7 ms
4,380 KB
testcase_18 AC 7 ms
4,380 KB
testcase_19 AC 7 ms
4,380 KB
testcase_20 AC 6 ms
4,380 KB
testcase_21 AC 6 ms
4,380 KB
testcase_22 AC 7 ms
4,380 KB
testcase_23 AC 7 ms
4,380 KB
testcase_24 AC 7 ms
4,376 KB
testcase_25 AC 7 ms
4,380 KB
testcase_26 AC 7 ms
4,380 KB
testcase_27 WA -
testcase_28 AC 60 ms
10,576 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 42 ms
9,748 KB
testcase_32 AC 104 ms
15,904 KB
testcase_33 WA -
testcase_34 AC 44 ms
9,816 KB
testcase_35 AC 97 ms
18,168 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 101 ms
18,280 KB
testcase_39 AC 102 ms
18,384 KB
testcase_40 AC 101 ms
18,340 KB
testcase_41 WA -
testcase_42 AC 99 ms
18,284 KB
testcase_43 WA -
testcase_44 AC 99 ms
18,336 KB
testcase_45 AC 99 ms
18,232 KB
testcase_46 AC 7 ms
4,384 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 7 ms
4,376 KB
testcase_52 AC 6 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;

#include <bits/stdc++.h>
using namespace std;

int main(){
  ll n,k,m;
  cin>>n>>k>>m;
  
  map<ll,ll> M;
  for(ll a=1;a<100000;a++){
    ll tmp=a;
    for(ll b=1;;b++){
      if(log(tmp)+log(a+b*k)>log(n)) break;
      tmp*=a+b*k;
      M[tmp]++;
    }
  }
  
  ll ans=0;
  for(auto x:M){
    if(x.second==m) ans++;
  }
  cout<<ans<<endl;
    
  return 0;
}
0