結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
Ronlynes
|
| 提出日時 | 2017-06-30 22:33:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 537 bytes |
| コンパイル時間 | 621 ms |
| コンパイル使用メモリ | 67,328 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-04 20:00:18 |
| 合計ジャッジ時間 | 1,925 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
bool root = false;
for(int i=1;i<=sqrt(n);i++){
if(n%i == 0){
int j = n/i;
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