結果

問題 No.537 ユーザーID
ユーザー nohakai3nohakai3
提出日時 2022-08-02 11:11:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 488 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,992 KB
実行使用メモリ 9,456 KB
最終ジャッジ日時 2023-09-30 09:56:04
合計ジャッジ時間 3,508 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
7,732 KB
testcase_01 AC 13 ms
7,856 KB
testcase_02 AC 12 ms
7,728 KB
testcase_03 AC 12 ms
7,860 KB
testcase_04 AC 13 ms
7,792 KB
testcase_05 AC 13 ms
7,784 KB
testcase_06 AC 14 ms
7,892 KB
testcase_07 AC 14 ms
7,784 KB
testcase_08 AC 14 ms
7,836 KB
testcase_09 AC 13 ms
7,828 KB
testcase_10 AC 13 ms
7,888 KB
testcase_11 AC 13 ms
7,780 KB
testcase_12 AC 13 ms
7,804 KB
testcase_13 AC 12 ms
7,888 KB
testcase_14 AC 12 ms
7,808 KB
testcase_15 AC 12 ms
7,800 KB
testcase_16 AC 12 ms
7,820 KB
testcase_17 AC 13 ms
7,896 KB
testcase_18 AC 115 ms
7,780 KB
testcase_19 AC 145 ms
7,728 KB
testcase_20 AC 124 ms
7,804 KB
testcase_21 AC 86 ms
7,868 KB
testcase_22 AC 141 ms
7,788 KB
testcase_23 AC 87 ms
7,864 KB
testcase_24 AC 35 ms
7,712 KB
testcase_25 AC 140 ms
7,716 KB
testcase_26 AC 151 ms
7,824 KB
testcase_27 AC 119 ms
7,828 KB
testcase_28 AC 66 ms
8,532 KB
testcase_29 AC 151 ms
9,456 KB
testcase_30 AC 127 ms
9,376 KB
testcase_31 AC 56 ms
7,812 KB
testcase_32 AC 57 ms
7,828 KB
testcase_33 AC 147 ms
8,476 KB
testcase_34 AC 103 ms
7,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def make_divisors(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())
l=make_divisors(n)
ans=0
l2,l3=[],[]
for x in l:
    if str(x)!=str(n//x):
        l2.append(str(x)+str(n//x))
    else:
        l2.append(str(x))

l2=list(set(l2))
print(len(l2))
0