結果

問題 No.1737 One to N
ユーザー mrngmrng
提出日時 2021-11-18 18:39:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 87,304 KB
実行使用メモリ 71,920 KB
最終ジャッジ日時 2023-08-27 06:28:56
合計ジャッジ時間 4,001 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,716 KB
testcase_01 AC 68 ms
71,568 KB
testcase_02 AC 67 ms
71,784 KB
testcase_03 AC 66 ms
71,536 KB
testcase_04 AC 67 ms
71,740 KB
testcase_05 AC 66 ms
71,388 KB
testcase_06 AC 67 ms
71,920 KB
testcase_07 AC 66 ms
71,804 KB
testcase_08 AC 76 ms
71,684 KB
testcase_09 AC 65 ms
71,676 KB
testcase_10 AC 66 ms
71,736 KB
testcase_11 AC 67 ms
71,768 KB
testcase_12 AC 67 ms
71,600 KB
testcase_13 AC 65 ms
71,740 KB
testcase_14 AC 65 ms
71,848 KB
testcase_15 AC 64 ms
71,524 KB
testcase_16 AC 65 ms
71,868 KB
testcase_17 AC 63 ms
71,380 KB
testcase_18 AC 64 ms
71,772 KB
testcase_19 AC 66 ms
71,660 KB
testcase_20 AC 65 ms
71,672 KB
testcase_21 AC 65 ms
71,420 KB
testcase_22 AC 66 ms
71,884 KB
testcase_23 AC 65 ms
71,912 KB
testcase_24 AC 64 ms
71,504 KB
testcase_25 AC 66 ms
71,676 KB
testcase_26 AC 65 ms
71,784 KB
testcase_27 AC 63 ms
71,876 KB
testcase_28 AC 63 ms
71,676 KB
testcase_29 AC 64 ms
71,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
rep = int(n**0.5)+1
plist = [0]
for i in range(2,rep):
	while n%i==0:
		n //= i
		plist.append(i)
	if n==1: break
if n!=1:
	plist.append(n)
print(sum(plist))
0