結果

問題 No.537 ユーザーID
ユーザー hanorverhanorver
提出日時 2017-06-30 22:58:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 484 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2024-04-15 06:53:43
合計ジャッジ時間 5,903 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,880 KB
testcase_01 AC 30 ms
10,880 KB
testcase_02 AC 30 ms
10,880 KB
testcase_03 AC 30 ms
10,880 KB
testcase_04 AC 30 ms
11,008 KB
testcase_05 AC 29 ms
10,880 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 29 ms
10,880 KB
testcase_10 AC 29 ms
10,752 KB
testcase_11 AC 30 ms
10,752 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 150 ms
10,880 KB
testcase_19 AC 189 ms
10,752 KB
testcase_20 AC 170 ms
10,752 KB
testcase_21 AC 119 ms
10,752 KB
testcase_22 AC 185 ms
10,752 KB
testcase_23 AC 121 ms
10,752 KB
testcase_24 AC 55 ms
10,752 KB
testcase_25 AC 183 ms
10,880 KB
testcase_26 AC 194 ms
10,752 KB
testcase_27 AC 151 ms
10,880 KB
testcase_28 AC 374 ms
11,392 KB
testcase_29 AC 954 ms
11,520 KB
testcase_30 AC 804 ms
11,648 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

ans = 0

appear_list = list()

for i in range(1, int(n ** 0.5) + 1):
    if n % i == 0:
        if i * i == n:
            if [i, i] in appear_list:
                continue
            ans += 1
            appear_list.append([i, i])
        else:
            if [i, n // i] in appear_list or [n // i, i] in appear_list:
                continue
            ans += 2
            appear_list.append([i, n // i])
            appear_list.append([n // i, i])

print(ans)
0