結果
問題 |
No.537 ユーザーID
|
ユーザー |
|
提出日時 | 2018-04-26 22:19:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 439 bytes |
コンパイル時間 | 763 ms |
コンパイル使用メモリ | 80,020 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 21:15:37 |
合計ジャッジ時間 | 1,785 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 16 |
ソースコード
#include<iostream> #include<cmath> #include<set> using namespace std; int main(){ int n; cin >> n; set<string> data; double x = sqrt(n); for(int 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; }