結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー | 👑 | 
| 提出日時 | 2020-01-26 19:14:14 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 476 bytes | 
| コンパイル時間 | 1,006 ms | 
| コンパイル使用メモリ | 82,384 KB | 
| 実行使用メモリ | 13,880 KB | 
| 最終ジャッジ日時 | 2024-09-14 11:21:18 | 
| 合計ジャッジ時間 | 4,832 ms | 
| ジャッジサーバーID (参考情報) | judge6 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 15 TLE * 1 -- * 16 | 
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main(){
    long long n;cin>>n;
    vector<string> R;
    for(int i = 1; n >= i*i; i++){
        if(!(n%i)){
            string A = to_string(i);
            string B = to_string(n/i);
            R.push_back(A+B);
            R.push_back(B+A);
        }
    }
    
    sort(R.begin(),R.end());
    R.erase(unique(R.begin(),R.end()),R.end());
    cout << R.size() << endl;
}
            
            
            
        