結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  ei1333333 | 
| 提出日時 | 2017-06-30 22:23:06 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 12 ms / 2,000 ms | 
| コード長 | 407 bytes | 
| コンパイル時間 | 1,606 ms | 
| コンパイル使用メモリ | 167,436 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-04 19:12:14 | 
| 合計ジャッジ時間 | 2,205 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 32 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long int64;
void solve()
{
  int64 N;
  cin >> N;
  set< string > st;
  for(int64 i = 1; i * i <= N; i++) {
    if(N % i == 0) {
      st.emplace(to_string(i) + to_string(N / i));
      st.emplace(to_string(N / i) + to_string(i));
    }
  }
  cout << st.size() << endl;
}
int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  solve();
}
            
            
            
        