結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
teketeke5000
|
| 提出日時 | 2017-08-18 01:51:41 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 7 ms / 2,000 ms |
| コード長 | 382 bytes |
| 記録 | |
| コンパイル時間 | 1,727 ms |
| コンパイル使用メモリ | 184,996 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-02 00:20:52 |
| 合計ジャッジ時間 | 3,520 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
ll N,i;
int ans = 0;
cin >> N;
set<string> st;
ll stop = floor(sqrt(N));
for (i = 1; i <= stop; i++) if (N % i == 0) {
st.insert(to_string(i) + to_string(N/i));
st.insert(to_string(N/i) + to_string(i));
}
cout << st.size() << endl;
return 0;
}
teketeke5000