結果

問題 No.537 ユーザーID
ユーザー ninoinui
提出日時 2020-02-02 17:06:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 267 bytes
コンパイル時間 1,702 ms
コンパイル使用メモリ 175,104 KB
実行使用メモリ 10,272 KB
最終ジャッジ日時 2024-09-18 21:16:57
合計ジャッジ時間 5,620 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 TLE * 1 -- * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  long N;
  cin >> N;
  set<string> S;
  for (int i = 1; i * i <= N; i++)
    if (!(N % i)) S.insert(to_string(i) + to_string(N / i)), S.insert(to_string(N / i) + to_string(i));
  cout << S.size() << "\n";
}
0