結果
問題 |
No.537 ユーザーID
|
ユーザー |
|
提出日時 | 2017-07-03 02:22:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 787 ms |
コンパイル使用メモリ | 76,544 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 09:05:34 |
合計ジャッジ時間 | 1,576 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main() | ^~~~
ソースコード
#include<iostream> #include<set> #include<sstream> using namespace std; set<string>S; main() { long a,i=0;cin>>a; for(;++i*i<=a;)if(a%i<1) { stringstream ss,tt; ss<<i<<a/i;S.insert(ss.str()); tt<<a/i<<i;S.insert(tt.str()); } cout<<S.size()<<endl; }