結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-20 15:12:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 455 bytes |
| コンパイル時間 | 2,136 ms |
| コンパイル使用メモリ | 199,524 KB |
| 最終ジャッジ日時 | 2025-01-11 08:40:49 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(int)(n); i++)
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
long long n;
cin >> n;
set<string> st;
for (long long x = 1; x * x <= n; x++) {
if (n % x) continue;
long long y = n / x;
string xx = to_string(x);
string yy = to_string(y);
st.insert(xx + yy);
st.insert(yy + xx);
}
cout << st.size() << endl;
return 0;
}