結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-06-30 22:21:58 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 1,559 ms |
コンパイル使用メモリ | 168,776 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 19:02:42 |
合計ジャッジ時間 | 2,312 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include<bits/stdc++.h>using namespace std;#define int long longsigned main(){set<string> ss;int n;cin>>n;for(int i=1;i*i<=n;i++){if(n%i!=0) continue;int j=n/i;ss.insert(to_string(i)+to_string(j));ss.insert(to_string(j)+to_string(i));}cout<<ss.size()<<endl;return 0;}