結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2018-01-17 20:08:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 16 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 2,154 ms |
コンパイル使用メモリ | 201,236 KB |
最終ジャッジ日時 | 2025-01-05 07:37:12 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long n; cin>>n; set<string> s; for(long i=1; i*i<=n; ++i) { if (n%i>0) continue; s.insert(to_string(i)+to_string(n/i)); s.insert(to_string(n/i)+to_string(i)); } cout<<size(s)<<endl; }