結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  yamyam122 | 
| 提出日時 | 2017-09-13 15:10:21 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 16 ms / 2,000 ms | 
| コード長 | 425 bytes | 
| コンパイル時間 | 821 ms | 
| コンパイル使用メモリ | 71,436 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-07 19:47:17 | 
| 合計ジャッジ時間 | 1,842 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 32 | 
ソースコード
#include <iostream>
#include <set>
#include <string>
#include <cmath>
int main() {
	long long N;
	std::set <long long> st;
	std::cin >> N; std::cin.ignore();
	for (long long i = 1; i <= std::sqrt(N); i++) {
		if (N%i == 0) {
			st.insert(std::stoll(std::to_string(N / i) + std::to_string(i)));
			st.insert(std::stoll(std::to_string(i) + std::to_string(N / i)));
		}
	}
	std::cout << st.size() << std::endl;
	return 0;
}
            
            
            
        