結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-19 16:35:52 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 2,000 ms |
| コード長 | 435 bytes |
| 記録 | |
| コンパイル時間 | 603 ms |
| コンパイル使用メモリ | 92,144 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-20 12:23:20 |
| 合計ジャッジ時間 | 2,635 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#include <iostream>
#include <string>
#include <set>
#include <math.h>
using namespace std;
typedef unsigned long long UL;
int main(int argc, char* argv[])
{
UL N;
cin>>N;
char d[100];
set<string> nSet;
UL n=(UL)sqrt((double)N);
for (UL i=1;i<=n;i++){
UL x=N%i;
if (x==0){
UL y=N/i;
sprintf(d,"%lu%lu",y,i);
nSet.insert(d);
sprintf(d,"%lu%lu",i,y);
nSet.insert(d);
}
}
cout<<nSet.size()<<endl;
return 0;
}