結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
Ronlynes
|
| 提出日時 | 2017-06-30 22:54:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 694 bytes |
| コンパイル時間 | 1,214 ms |
| コンパイル使用メモリ | 67,196 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-04 20:55:21 |
| 合計ジャッジ時間 | 2,011 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 WA * 9 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <queue>
#include <cmath>
using namespace std;
int main(void){
long long n, cnt=0, betu=0, ans;
cin >> n;
for(int i=1;i<=sqrt(n);i++){
if(n%i == 0){
int j = n/i;
if( i == sqrt(n)){
double aa = sqrt(n);
double bb = i;
if(aa != bb){
continue;
}
}
string s1 = to_string(i);
string s2 = to_string(j);
if( (s1+s2) == (s2+s1) ){
betu++;
}else{
cnt++;
}
}
}
cout << cnt*2+betu << endl;
return 0;
}
Ronlynes