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