結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2021-02-15 23:07:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 2,061 ms |
コンパイル使用メモリ | 201,276 KB |
最終ジャッジ日時 | 2025-01-18 21:18:54 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;#define rep(i,n) for(ll i=0;i<n;i++)static const int INF=1000000000;int main(){ll n;cin>>n;map<string,int>mp;for(ll i=1;i*i<=n;i++){if(n%i==0){ll x=n/i;string a=to_string(i);string b=to_string(x);mp[a+b]++;mp[b+a]++;}}cout<<mp.size()<<endl;return 0;}