結果

問題 No.537 ユーザーID
ユーザー akanayaakanaya
提出日時 2020-03-31 09:20:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 332 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 8,580 KB
最終ジャッジ日時 2023-09-06 04:31:07
合計ジャッジ時間 4,221 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,888 KB
testcase_01 AC 15 ms
7,856 KB
testcase_02 AC 15 ms
7,820 KB
testcase_03 AC 15 ms
7,884 KB
testcase_04 AC 15 ms
7,888 KB
testcase_05 AC 15 ms
7,848 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 15 ms
7,844 KB
testcase_09 AC 16 ms
7,792 KB
testcase_10 AC 16 ms
7,856 KB
testcase_11 AC 15 ms
7,844 KB
testcase_12 AC 15 ms
7,792 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 17 ms
7,792 KB
testcase_16 AC 15 ms
7,792 KB
testcase_17 WA -
testcase_18 AC 124 ms
7,784 KB
testcase_19 AC 159 ms
7,812 KB
testcase_20 AC 141 ms
7,804 KB
testcase_21 AC 96 ms
7,796 KB
testcase_22 AC 154 ms
7,808 KB
testcase_23 AC 95 ms
7,952 KB
testcase_24 AC 38 ms
7,796 KB
testcase_25 AC 153 ms
7,888 KB
testcase_26 AC 165 ms
7,948 KB
testcase_27 AC 126 ms
7,816 KB
testcase_28 AC 73 ms
8,228 KB
testcase_29 AC 168 ms
8,580 KB
testcase_30 AC 142 ms
8,484 KB
testcase_31 WA -
testcase_32 AC 65 ms
7,780 KB
testcase_33 WA -
testcase_34 AC 117 ms
7,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

def divisors(n):
    div = []
    i = 1
    while(i * i <= n):
        if n % i == 0:
            div.append([i, n // i])
        i += 1
    return div


div = divisors(n)

count = 0
for d in div:
    if str(d[0]) + str(d[1]) == str(d[1]) + str(d[0]):
        count += 1
    else:
        count += 2

print(count)
0