結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-07-04 21:48:33 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 502 bytes |
コンパイル時間 | 617 ms |
コンパイル使用メモリ | 73,124 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-05 16:10:01 |
合計ジャッジ時間 | 1,749 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <iostream>#include <math.h>#include <set>#include <string>using namespace std;int main(void){long long int N;cin >> N;int sqrtN = (int)floor(sqrt(N + 0.5));set<string> pool;string left, right;for (int i=1; i<=sqrtN; i++) {if (N%i==0) {left = std::to_string(i);right = std::to_string(N/i);pool.insert(left + right);pool.insert(right + left);}}cout << pool.size() << endl;}