結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-08-01 15:51:41 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 439 bytes |
コンパイル時間 | 1,058 ms |
コンパイル使用メモリ | 76,528 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-11 12:55:46 |
合計ジャッジ時間 | 4,918 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 TLE * 1 -- * 16 |
ソースコード
#include <iostream>#include <vector>#include <string>#include <algorithm>#include <math.h>using namespace std;int main() {int n;cin >> n;vector<string> a;for(int i = 1;i <= n;i++){if(n%i != 0)continue;int m = n/i;a.push_back(to_string(i)+to_string(m));}sort(a.begin(),a.end());a.erase(unique(a.begin(), a.end()),a.end());cout << a.size() << endl;return 0;}