結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  ngtkana | 
| 提出日時 | 2020-02-29 13:53:40 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 14 ms / 2,000 ms | 
| コード長 | 430 bytes | 
| コンパイル時間 | 1,852 ms | 
| コンパイル使用メモリ | 179,336 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-13 19:58:35 | 
| 合計ジャッジ時間 | 3,093 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 32 | 
ソースコード
#include<bits/stdc++.h>
int main(){
    long long n;std::cin>>n;
    std::vector<std::string>a;
    for(long long i=1;i*i<=n;i++){
        if(n%i!=0)continue;
        std::string s=std::to_string(i);
        std::string t=std::to_string(n/i);
        a.push_back(s+t);
        a.push_back(t+s);
    }
    std::sort(a.begin(),a.end());
    a.resize(std::unique(a.begin(),a.end())-a.begin());
    std::cout<<a.size()<<std::endl;
}
            
            
            
        