結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-01-14 19:45:55 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 14 ms / 2,000 ms | 
| コード長 | 416 bytes | 
| コンパイル時間 | 1,584 ms | 
| コンパイル使用メモリ | 173,092 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-24 02:59:01 | 
| 合計ジャッジ時間 | 2,825 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 32 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define LL long long
int main() {
    LL n;
    cin >> n;
    set<string> userID;
    for (LL i = 1; i * i <= n; i++) {
        if (n % i == 0) {
            string s1 = to_string(i);
            string s2 = to_string(n / i);
            userID.insert(s1 + s2);
            userID.insert(s2 + s1);
        }
    }
    cout << userID.size() << endl;
    return 0;
}
            
            
            
        