結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  kyabaria | 
| 提出日時 | 2018-09-12 11:05:32 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 540 bytes | 
| コンパイル時間 | 2,172 ms | 
| コンパイル使用メモリ | 179,472 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-06-26 08:51:27 | 
| 合計ジャッジ時間 | 6,136 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 15 TLE * 1 -- * 16 | 
ソースコード
#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;
    int ans=0;
    for(int i=1;i*i<=n;i++){
        if(n%i==0){
            string num;
            int 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;
}
            
            
            
        