結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2020-07-09 02:06:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 110 ms / 2,000 ms |
コード長 | 504 bytes |
コンパイル時間 | 1,926 ms |
コンパイル使用メモリ | 173,916 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 11:30:32 |
合計ジャッジ時間 | 2,968 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h>#define PI 3.14159265359using namespace std;int main() {int64_t N;cin >> N;int64_t rt = sqrt(N);vector<string> v;for (int64_t i = 1; i <= rt; i++) {if (!(N % i)) {int64_t n;n = N / i;string a, b, c, d;a = to_string(i);b = to_string(n);c = a + b;d = b + a;if (count(v.begin(), v.end(), c) == 0) {v.push_back(c);}if (count(v.begin(), v.end(), d) == 0) {v.push_back(d);}}}cout << v.size() << endl;}