結果

問題 No.1973 Divisor Sequence
ユーザー umimelumimel
提出日時 2022-06-10 23:28:54
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,154 bytes
コンパイル時間 1,782 ms
コンパイル使用メモリ 174,456 KB
実行使用メモリ 814,864 KB
最終ジャッジ日時 2023-10-21 05:48:32
合計ジャッジ時間 5,770 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 RE -
testcase_24 MLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
#define drep(i, cc, n) for (ll i = (cc); i <= (n); ++i)
#define rep(i, n) drep(i, 0, n - 1)
#define all(a) (a).begin(), (a).end()
#define pb push_back
#define fi first
#define se second

const ll MOD = 1000000007;
const ll MOD2 = 998244353;
const ll INF = 1LL << 60;
const ll N_MAX = 2e5;

int main(){
    ll n, m;
    cin >> n >> m;

    vector<ll> div;
    for(ll i=1; i*i<=m; i++){
        if(m%i != 0) continue;
        if(i == m/i){
            div.pb(i);
        }else{
            div.pb(i);
            div.pb(m/i);
        }
    }

    vector<vector<ll>> cnt(n, vector<ll>((ll)div.size(), 0));
    rep(i, (ll)div.size()) cnt[0][i] = 1;
    vector<vector<ll>> P((ll)div.size());
    rep(i, (ll)div.size()){
        rep(j, (ll)div.size()){
            if(m%(div[i]*div[j]) == 0){
                P[i].pb(j);
            }
        }
    }

    for(ll i=1; i<n; i++){
        rep(j, (ll)div.size()){
            
        }
    }

    ll ans = 0;
    rep(i, (ll)div.size()){
        ans += cnt[n-1][i];
        ans %= MOD;
    }

    cout << ans << endl;
}
0