結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-07-23 01:37:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 460 bytes |
コンパイル時間 | 951 ms |
コンパイル使用メモリ | 70,632 KB |
実行使用メモリ | 10,024 KB |
最終ジャッジ日時 | 2024-10-09 10:06:21 |
合計ジャッジ時間 | 4,584 ms |
ジャッジサーバーID (参考情報) |
judge5 / 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,ans=0;cin >> n;vector<string> stock;for(int i = 1;i <= n;i++){if(n%i == 0){stock.push_back(to_string(i) + to_string(n/i));}}sort(stock.begin(), stock.end());for(int i = 0;i < stock.size();i++){if(stock[i]!=stock[i-1])ans++;}cout << ans << endl;return 0;}