結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-08-09 12:53:21 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 14 ms / 2,000 ms |
| コード長 | 326 bytes |
| コンパイル時間 | 3,437 ms |
| コンパイル使用メモリ | 251,456 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 18:56:55 |
| 合計ジャッジ時間 | 4,200 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int N;
cin>>N;
set<string> s;
for(int i=1;i*i<=N;i++){
if(N%i == 0){
string a = to_string(i);
string b = to_string(N/i);
s.insert(a+b);
s.insert(b+a);
}
}
cout<<s.size()<<endl;
}
keisuke6