結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
sora410_t
|
| 提出日時 | 2017-11-02 00:28:50 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 665 ms |
| コンパイル使用メモリ | 93,292 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-16 16:27:05 |
| 合計ジャッジ時間 | 1,929 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
sora410_t