結果
| 問題 | 
                            No.537 ユーザーID
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-11-18 10:47:41 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 351 bytes | 
| コンパイル時間 | 1,569 ms | 
| コンパイル使用メモリ | 174,872 KB | 
| 実行使用メモリ | 13,640 KB | 
| 最終ジャッジ日時 | 2024-11-25 11:27:08 | 
| 合計ジャッジ時間 | 53,605 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 15 TLE * 17 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main() {
    set<string> z;
    long long N; cin >> N;
    for(int i = 1; i * i <= N; i++) {
        if(N % i == 0) {
            string s = to_string(i);
            string t = to_string(N / i);
            z.insert(s + t);
            z.insert(t + s);
        }
    }
    cout << z.size() << endl;
}