結果

問題 No.537 ユーザーID
コンテスト
ユーザー zuojiarui1027
提出日時 2026-04-19 17:22:03
言語 C++23
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 621 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,281 ms
コンパイル使用メモリ 333,072 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-19 17:22:13
合計ジャッジ時間 6,376 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<bits/stdc++.h>
#define int long long
using namespace std;
vector<int> ans;
bool zhi[10000001];
void j(int x){
    int g2=0;
    while(x%2==0){
        x/=2;
        g2++;

    }
    if(g2!=0)
    ans.push_back(g2);
    for(int i=3;i*i<=x;i+=2){
        int an=0;
       
        
        while(x%i==0){
            x/=i;
            an++;
        }
        if(an!=0)
        ans.push_back(an);
    }
    if(x!=1){
        ans.push_back(1);
    }


}
signed main(){
    ans.clear();
    int x;
    cin>>x;
    j(x);
    int aan=1;
    for(auto i:ans){
      
        aan*=i+1;
    }
    cout<<aan;
    return 0;
}
0