結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2018-07-21 18:49:25 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 676 ms |
コンパイル使用メモリ | 72,404 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 04:56:11 |
合計ジャッジ時間 | 1,947 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <iostream> #include <string> #include <cmath> #include <set> using namespace std; int main(){ set<string> s; long long int n; cin >> n; long long int a; for(long long int i=1;i<=sqrt(n);i++){ if(n%i==0){ a=n/i; s.insert(to_string(i)+to_string(a)); s.insert(to_string(a)+to_string(i)); } } cout << s.size() << endl; return 0; }