結果

問題 No.537 ユーザーID
ユーザー nohakai3nohakai3
提出日時 2022-08-02 11:07:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 460 bytes
コンパイル時間 811 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 8,500 KB
最終ジャッジ日時 2023-09-30 09:52:21
合計ジャッジ時間 4,801 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,864 KB
testcase_01 AC 16 ms
7,840 KB
testcase_02 AC 15 ms
7,764 KB
testcase_03 AC 16 ms
7,840 KB
testcase_04 AC 15 ms
7,748 KB
testcase_05 AC 15 ms
7,952 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 16 ms
7,864 KB
testcase_10 AC 15 ms
7,916 KB
testcase_11 AC 16 ms
7,764 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 122 ms
7,908 KB
testcase_19 AC 158 ms
7,944 KB
testcase_20 AC 136 ms
7,860 KB
testcase_21 AC 94 ms
7,924 KB
testcase_22 AC 149 ms
7,816 KB
testcase_23 AC 92 ms
7,800 KB
testcase_24 AC 38 ms
7,852 KB
testcase_25 AC 149 ms
7,828 KB
testcase_26 AC 159 ms
7,764 KB
testcase_27 AC 123 ms
7,736 KB
testcase_28 AC 70 ms
8,384 KB
testcase_29 AC 163 ms
8,420 KB
testcase_30 AC 135 ms
8,500 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

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(x)
    else: l3.append(str(x))
    
print(len(l2)+len(l3))
0