結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  aqua_tenhou | 
| 提出日時 | 2021-08-01 22:06:04 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 64 ms / 2,000 ms | 
| コード長 | 448 bytes | 
| コンパイル時間 | 149 ms | 
| コンパイル使用メモリ | 82,588 KB | 
| 実行使用メモリ | 63,360 KB | 
| 最終ジャッジ日時 | 2024-09-16 13:02:52 | 
| 合計ジャッジ時間 | 2,982 ms | 
| ジャッジサーバーID (参考情報) | judge6 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 32 | 
ソースコード
def div(n):
    lower_divisors , upper_divisors = [], []
    i = 1
    while i*i <= n:
        if n % i == 0:
            lower_divisors.append(i)
            if i != n // i:
                upper_divisors.append(n//i)
        i += 1
    return lower_divisors + upper_divisors[::-1]
n = int(input())
lis = div(n)
s = set([])
for x in lis:
    y = n//x
    s1 = str(x) + str(y)
    s2 = str(y) + str(x)
    s.add(s1)
    s.add(s2)
print(len(s))
            
            
            
        