結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-11 02:44:05 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 7 ms / 2,000 ms |
| コード長 | 478 bytes |
| 記録 | |
| コンパイル時間 | 1,452 ms |
| コンパイル使用メモリ | 219,008 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-24 14:08:56 |
| 合計ジャッジ時間 | 2,682 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}