結果

問題 No.537 ユーザーID
ユーザー kohei2019kohei2019
提出日時 2022-02-07 21:53:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 450 bytes
コンパイル時間 1,433 ms
コンパイル使用メモリ 86,188 KB
実行使用メモリ 75,960 KB
最終ジャッジ日時 2023-09-04 11:18:14
合計ジャッジ時間 6,410 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,004 KB
testcase_01 AC 75 ms
70,660 KB
testcase_02 AC 74 ms
70,604 KB
testcase_03 AC 75 ms
70,600 KB
testcase_04 AC 73 ms
70,384 KB
testcase_05 AC 72 ms
70,564 KB
testcase_06 AC 74 ms
70,564 KB
testcase_07 AC 75 ms
70,592 KB
testcase_08 AC 76 ms
70,796 KB
testcase_09 AC 74 ms
71,020 KB
testcase_10 AC 76 ms
70,400 KB
testcase_11 AC 74 ms
71,140 KB
testcase_12 AC 75 ms
71,020 KB
testcase_13 AC 74 ms
70,636 KB
testcase_14 AC 74 ms
70,392 KB
testcase_15 AC 75 ms
70,796 KB
testcase_16 AC 75 ms
70,692 KB
testcase_17 AC 74 ms
70,608 KB
testcase_18 AC 91 ms
74,748 KB
testcase_19 AC 92 ms
74,880 KB
testcase_20 AC 92 ms
74,808 KB
testcase_21 AC 89 ms
74,608 KB
testcase_22 AC 92 ms
74,740 KB
testcase_23 AC 88 ms
74,852 KB
testcase_24 AC 82 ms
74,872 KB
testcase_25 AC 95 ms
74,856 KB
testcase_26 AC 95 ms
74,884 KB
testcase_27 AC 87 ms
74,856 KB
testcase_28 AC 91 ms
75,712 KB
testcase_29 AC 100 ms
75,960 KB
testcase_30 AC 96 ms
75,856 KB
testcase_31 AC 83 ms
74,932 KB
testcase_32 AC 83 ms
75,060 KB
testcase_33 AC 99 ms
75,920 KB
testcase_34 AC 88 ms
74,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
def make_divisors(N):#約数列挙O(√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]

lsd = make_divisors(N)

ans = set()

for d in lsd:
    r = N // d
    s = str(d)+str(r)
    ans.add(s)

print(len(ans))
0