結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-02 04:49:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 2,000 ms |
| コード長 | 405 bytes |
| コンパイル時間 | 758 ms |
| コンパイル使用メモリ | 72,832 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 17:13:17 |
| 合計ジャッジ時間 | 2,087 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#include <cmath>
#include <iostream>
#include <set>
#include <string>
using namespace std;
int main(){
long long N;
cin >> N;
set<string> names;
for(int num=1;num<=sqrt(N);num++){
if(N%num!=0)continue;
string str1=to_string(num),str2=to_string(N/num);
names.insert(str1+str2);
names.insert(str2+str1);
}
cout << names.size() << endl;
return 0;
}