結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2017-11-02 00:28:50 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 759 ms |
コンパイル使用メモリ | 69,732 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-22 14:54:44 |
合計ジャッジ時間 | 1,826 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 16 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import <iostream> | ^~~~~~ main.cpp:2:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 2 | #import <cmath> | ^~~~~~ main.cpp:3:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 3 | #import <set> | ^~~~~~ main.cpp:4:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 4 | #import <string> | ^~~~~~
ソースコード
#import <iostream> #import <cmath> #import <set> #import <string> using namespace std; int main() { int n; set<string> s; cin >> n; for (int i = 1; i <= sqrt(n); ++i) { if (n % i == 0) { const string a = to_string(i); const string b = to_string(n/i); s.insert({a+b, b+a}); } } cout << s.size() << endl; }