結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  kyabaria | 
| 提出日時 | 2018-09-12 11:08:04 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 15 ms / 2,000 ms | 
| コード長 | 523 bytes | 
| コンパイル時間 | 2,048 ms | 
| コンパイル使用メモリ | 179,380 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-26 08:58:01 | 
| 合計ジャッジ時間 | 3,394 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 32 | 
ソースコード
#include <bits/stdc++.h>
typedef long long ll;
#define INF 1000000000
#define MOD 1000000007
using namespace std;
int main(void){
    ll n;
    cin>>n;
    vector<string>res;
    for(ll i=1;i*i<=n;i++){
        if(n%i==0){
            string num;
            ll a=i,b=n/i;
            string c=to_string(a),d=to_string(b);
            res.push_back(c+d);
            res.push_back(d+c);
        }
    }
    sort(res.begin(),res.end());
    res.erase(unique(res.begin(), res.end()), res.end());
    cout<<res.size()<<endl;
}
            
            
            
        