結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-06-30 22:26:46 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 499 bytes |
コンパイル時間 | 1,474 ms |
コンパイル使用メモリ | 168,496 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 19:32:05 |
合計ジャッジ時間 | 2,306 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h>#define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++)#define REP(i,n) FOR(i,0,n)#define MOD 1000000007//#define int long longusing namespace std;typedef long long ll;const int INF = 1e9;signed main(){ll N;cin >> N;set<string> ans;for (ll i=1; i*i<=N; i++) {if (N % i == 0) {ans.insert(to_string(i) + to_string(N / i));ans.insert(to_string(N / i) + to_string(i));}}cout << ans.size() << endl;}