結果

問題 No.537 ユーザーID
ユーザー 👑 yumechiyumechi
提出日時 2017-08-08 00:29:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 415 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 82,308 KB
実行使用メモリ 62,584 KB
最終ジャッジ日時 2024-04-20 03:47:00
合計ジャッジ時間 2,446 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,588 KB
testcase_01 AC 35 ms
53,448 KB
testcase_02 AC 35 ms
52,912 KB
testcase_03 AC 31 ms
53,364 KB
testcase_04 AC 32 ms
53,364 KB
testcase_05 AC 32 ms
53,264 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 32 ms
52,068 KB
testcase_10 AC 32 ms
52,668 KB
testcase_11 AC 34 ms
52,540 KB
testcase_12 AC 32 ms
52,860 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 33 ms
52,620 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 42 ms
58,048 KB
testcase_19 AC 46 ms
58,316 KB
testcase_20 AC 43 ms
58,072 KB
testcase_21 AC 41 ms
58,492 KB
testcase_22 AC 45 ms
58,448 KB
testcase_23 AC 40 ms
57,988 KB
testcase_24 AC 35 ms
59,212 KB
testcase_25 AC 44 ms
57,856 KB
testcase_26 AC 47 ms
58,060 KB
testcase_27 AC 43 ms
57,728 KB
testcase_28 AC 42 ms
60,816 KB
testcase_29 AC 51 ms
62,584 KB
testcase_30 AC 50 ms
61,224 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 54 ms
61,804 KB
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def get_divisors(n):
    limit = int(n ** 0.5 + 1)
    divisors = []
    for i in range(1, limit):
        if n % i == 0:
            divisors.append(str(i))
            if i * i != n:
                divisors.append(str(n // i))
    divisors.sort()
    return divisors

divisors = get_divisors(int(input()))
result_list = [divisors[i] + divisors[-i-1] for i in range(0, len(divisors))]
print(len(set(result_list)))
0