結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-02-14 14:42:53 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 314 bytes | 
| コンパイル時間 | 685 ms | 
| コンパイル使用メモリ | 73,848 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-13 11:24:51 | 
| 合計ジャッジ時間 | 1,869 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 WA * 13 | 
ソースコード
#include <iostream>
#include <set>
#include <string>
using namespace std;
int main() {
	long N;
	cin >> N;
	long i;
	set<string> tmp;
	for (i = 1; i * i < N; ++i) {
		if (N % i == 0) tmp.insert(to_string(i) + to_string(N / i));
	}
	if (N % (i * i) == 0) cout << tmp.size() * 2 + 1;
	else cout << tmp.size() * 2;
}
            
            
            
        