結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2017-06-30 22:36:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 286 bytes |
| コンパイル時間 | 730 ms |
| コンパイル使用メモリ | 75,120 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-04 20:23:22 |
| 合計ジャッジ時間 | 1,772 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#include <iostream>
#include <set>
using namespace std;
int main(){
set<string> st;
int64_t n;
cin >> n;
for(int64_t i = 1; i * i <= n; i++) if(n % i == 0){
st.insert(to_string(i) + to_string(n / i));
st.insert(to_string(n / i) + to_string(i));
}
cout << st.size() << endl;
}
ldsyb