結果

問題 No.537 ユーザーID
ユーザー _KingdomOfMoray
提出日時 2019-12-23 22:53:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 588 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,904 KB
最終ジャッジ日時 2024-09-19 03:13:32
合計ジャッジ時間 3,696 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

def make_divisors(n):
    divisors = []
    propose = []
    square = 0
    
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            cur = []
            if i != n // i:
                cur.append(i)
                cur.append(n//i)
            else:
                cur.append(n//i)
                cur.append(n//i)
                square += 1
                
            propose.append(str(cur[0]) + str(cur[1]))
            propose.append(str(cur[1]) + str(cur[0]))
            
    return len(list(set(propose)))

res = make_divisors(n)

print(res)
0