結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2018-02-14 20:46:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 407 bytes |
コンパイル時間 | 785 ms |
コンパイル使用メモリ | 71,320 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 05:50:00 |
合計ジャッジ時間 | 1,950 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include<iostream> #include<string> #include<cmath> #include<set> using namespace std; int main(void){ unsigned long long N; int count = 2; set<string> st; cin >> N; for(unsigned long long i=sqrt(N);i>0;i--){ if(N%i==0){ st.insert(to_string(N/i)+to_string(i)); st.insert(to_string(i)+to_string(N/i)); } } cout << st.size(); return 0; }