結果

問題 No.537 ユーザーID
ユーザー maguroguma
提出日時 2017-08-19 19:22:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 278 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-14 15:49:15
合計ジャッジ時間 5,985 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

'''
64//2 = 32などのケースが引っ掛け
'''

N = int(input())

i = 1
ans = 0
while i*i<=N:
    if N%i==0:
        q = N//i
        id_1 = str(i) + str(q)
        id_2 = str(q) + str(i)
        ans += 1 if id_1==id_2 else 2
    i += 1

print(ans)
0