結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  Ronlynes | 
| 提出日時 | 2017-06-30 22:36:29 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 609 bytes | 
| コンパイル時間 | 480 ms | 
| コンパイル使用メモリ | 66,868 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-04 20:17:15 | 
| 合計ジャッジ時間 | 1,667 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 WA * 22 | 
ソースコード
#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;
            if(i <= j){
                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;
}
            
            
            
        