結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2018-04-26 22:20:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 453 bytes |
コンパイル時間 | 804 ms |
コンパイル使用メモリ | 80,332 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 21:15:39 |
合計ジャッジ時間 | 2,031 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include<iostream>#include<cmath>#include<set>using namespace std;int main(){long long n;cin >> n;set<string> data;double x = sqrt(n);for(long long i = 1; i <= x; i++){if(n%i == 0){string s = to_string(i) + to_string(n/i);string t = to_string(n/i) + to_string(i);data.insert(s);data.insert(t);}}cout << data.size() << endl;return 0;}