結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2020-06-22 01:58:34 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 578 bytes |
コンパイル時間 | 738 ms |
コンパイル使用メモリ | 82,500 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-03 18:32:58 |
合計ジャッジ時間 | 1,961 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 WA * 8 |
ソースコード
#include <algorithm>#include <cmath>#include <cstdio>#include <deque>#include <iostream>#include <map>#include <numeric>#include <queue>#include <set>#include <stack>#include <string>#include <vector>using namespace std;typedef long long ll;#define MOD 1000000007int main() {ll n;cin >> n;set<string> st;for (ll i = 1; i * i <= n; ++i) {if (n % i == 0) {string res = to_string(i) + to_string(n / i);st.insert(res);reverse(res.begin(), res.end());st.insert(res);}}cout << st.size() << endl;return 0;}