結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  rankBBNT | 
| 提出日時 | 2017-07-04 21:47:22 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 492 bytes | 
| コンパイル時間 | 716 ms | 
| コンパイル使用メモリ | 72,184 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-05 16:09:47 | 
| 合計ジャッジ時間 | 1,576 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 16 WA * 16 | 
ソースコード
#include <iostream>
#include <math.h>
#include <set>
#include <string>
using namespace std;
int main(void){
    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;
}
            
            
            
        