結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
teketeke5000
|
| 提出日時 | 2017-08-18 01:51:41 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 14 ms / 2,000 ms |
| コード長 | 382 bytes |
| コンパイル時間 | 1,278 ms |
| コンパイル使用メモリ | 168,304 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 14:02:40 |
| 合計ジャッジ時間 | 2,323 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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