結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-07-23 01:31:13 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 691 ms |
コンパイル使用メモリ | 67,564 KB |
実行使用メモリ | 13,640 KB |
最終ジャッジ日時 | 2024-10-09 10:06:17 |
合計ジャッジ時間 | 4,406 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 TLE * 1 -- * 16 |
ソースコード
#include <iostream>#include <vector>#include <string>#include <algorithm>using namespace std;int main() {int n;cin >> n;vector<string> stock;for(int i = 1;i <= n;i++){if(n%i == 0){string a;a = to_string(i) + to_string(n/i);if(find(stock.begin(), stock.end(), a) == stock.end())stock.push_back(a);}}cout << stock.size() << endl;return 0;}