結果

問題 No.537 ユーザーID
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-08-01 22:06:04
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 448 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 76,556 KB
最終ジャッジ日時 2023-10-14 19:03:19
合計ジャッジ時間 4,792 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,344 KB
testcase_01 AC 69 ms
71,240 KB
testcase_02 AC 68 ms
71,296 KB
testcase_03 AC 74 ms
71,348 KB
testcase_04 AC 70 ms
71,356 KB
testcase_05 AC 69 ms
71,356 KB
testcase_06 AC 68 ms
71,352 KB
testcase_07 AC 70 ms
71,192 KB
testcase_08 AC 70 ms
71,524 KB
testcase_09 AC 70 ms
71,384 KB
testcase_10 AC 72 ms
71,524 KB
testcase_11 AC 72 ms
71,236 KB
testcase_12 AC 69 ms
71,516 KB
testcase_13 AC 69 ms
71,088 KB
testcase_14 AC 70 ms
71,352 KB
testcase_15 AC 71 ms
71,344 KB
testcase_16 AC 70 ms
71,528 KB
testcase_17 AC 70 ms
71,432 KB
testcase_18 AC 85 ms
75,544 KB
testcase_19 AC 88 ms
75,544 KB
testcase_20 AC 87 ms
75,480 KB
testcase_21 AC 81 ms
75,420 KB
testcase_22 AC 88 ms
75,468 KB
testcase_23 AC 80 ms
75,504 KB
testcase_24 AC 75 ms
75,276 KB
testcase_25 AC 89 ms
75,452 KB
testcase_26 AC 87 ms
75,560 KB
testcase_27 AC 84 ms
75,412 KB
testcase_28 AC 84 ms
76,512 KB
testcase_29 AC 96 ms
76,556 KB
testcase_30 AC 95 ms
76,280 KB
testcase_31 AC 78 ms
75,484 KB
testcase_32 AC 78 ms
75,420 KB
testcase_33 AC 94 ms
76,496 KB
testcase_34 AC 84 ms
75,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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))

0