結果
問題 |
No.537 ユーザーID
|
ユーザー |
|
提出日時 | 2021-12-11 02:44:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 478 bytes |
コンパイル時間 | 1,955 ms |
コンパイル使用メモリ | 201,636 KB |
最終ジャッジ日時 | 2025-01-26 07:39:21 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); long long int n; set <string> S; cin >> n; for(long long int i=1;i<=sqrt(n);i++) { if(n%i==0) { long long int a = i; long long int b = n/i; stringstream ss; ss << a << b; S.insert(ss.str()); stringstream ss2; ss2 << b << a; S.insert(ss2.str()); } } cout << S.size() << '\n'; return 0; }