結果

問題 No.537 ユーザーID
ユーザー hanorver
提出日時 2017-06-30 22:58:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 484 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,776 KB
最終ジャッジ日時 2024-10-04 21:00:16
合計ジャッジ時間 5,482 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 13
権限があれば一括ダウンロードができます

ソースコード

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