結果
問題 | No.537 ユーザーID |
ユーザー | Mario |
提出日時 | 2018-05-05 17:36:13 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 464 bytes |
コンパイル時間 | 119 ms |
コンパイル使用メモリ | 10,728 KB |
実行使用メモリ | 8,808 KB |
最終ジャッジ日時 | 2023-09-10 10:34:47 |
合計ジャッジ時間 | 2,578 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 19 ms
8,680 KB |
testcase_01 | AC | 21 ms
8,756 KB |
testcase_02 | AC | 20 ms
8,580 KB |
testcase_03 | AC | 21 ms
8,624 KB |
testcase_04 | AC | 20 ms
8,676 KB |
testcase_05 | AC | 21 ms
8,752 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | RE | - |
testcase_10 | AC | 21 ms
8,708 KB |
testcase_11 | AC | 20 ms
8,572 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 21 ms
8,620 KB |
testcase_19 | AC | 24 ms
8,732 KB |
testcase_20 | AC | 165 ms
8,672 KB |
testcase_21 | AC | 20 ms
8,688 KB |
testcase_22 | AC | 20 ms
8,604 KB |
testcase_23 | AC | 20 ms
8,668 KB |
testcase_24 | AC | 20 ms
8,684 KB |
testcase_25 | AC | 20 ms
8,604 KB |
testcase_26 | AC | 20 ms
8,620 KB |
testcase_27 | AC | 20 ms
8,672 KB |
testcase_28 | AC | 19 ms
8,620 KB |
testcase_29 | AC | 20 ms
8,744 KB |
testcase_30 | AC | 20 ms
8,700 KB |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
ソースコード
from functools import reduce def factorint(num): fct = {} b = 2 e = 0 while num >= b * b: while num % b == 0: num //= b e += 1 if e > 0: fct[b] = e b += 1 e = 0 if num > 1: fct[num] = 1 return fct def main(): factor = factorint(int(input())) print(reduce(lambda x, y: x * y, [v + 1 for v in factor.values()])) if __name__ == "__main__": main()