結果

問題 No.537 ユーザーID
ユーザー kept1994kept1994
提出日時 2022-05-04 19:46:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 512 bytes
コンパイル時間 930 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 75,896 KB
最終ジャッジ日時 2023-09-17 00:27:21
合計ジャッジ時間 4,603 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,256 KB
testcase_01 AC 67 ms
71,472 KB
testcase_02 AC 70 ms
71,408 KB
testcase_03 AC 69 ms
71,296 KB
testcase_04 AC 71 ms
71,268 KB
testcase_05 AC 69 ms
71,540 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 70 ms
71,316 KB
testcase_10 AC 67 ms
71,156 KB
testcase_11 AC 66 ms
71,184 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 69 ms
75,432 KB
testcase_19 AC 70 ms
75,332 KB
testcase_20 AC 82 ms
75,896 KB
testcase_21 AC 68 ms
75,336 KB
testcase_22 AC 66 ms
71,428 KB
testcase_23 AC 68 ms
71,312 KB
testcase_24 AC 69 ms
75,444 KB
testcase_25 AC 70 ms
71,312 KB
testcase_26 AC 69 ms
71,560 KB
testcase_27 AC 64 ms
71,296 KB
testcase_28 AC 65 ms
71,408 KB
testcase_29 AC 64 ms
71,076 KB
testcase_30 AC 65 ms
71,424 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys
def getNumOfDividors(n: int) -> int:
    numOfDividors = 1
    i = 2
    while i * i <= n:
        ex = 0
        while n % i == 0:
            ex += 1
            n //= i
        if ex != 0:
            numOfDividors *= ex + 1
        i += 1
    if n != 1:
        numOfDividors *= 2
    return numOfDividors
def main():
    N = int(input())
    num = getNumOfDividors(N)
    p, q = divmod(num, 2)
    print(2 * p + q)
    return
        

if __name__ == '__main__':
    main()
0