結果

問題 No.1737 One to N
ユーザー tobusakanatobusakana
提出日時 2022-11-25 22:57:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 82,236 KB
実行使用メモリ 59,312 KB
最終ジャッジ日時 2024-04-10 04:04:08
合計ジャッジ時間 2,566 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
59,248 KB
testcase_01 AC 37 ms
51,956 KB
testcase_02 AC 40 ms
57,768 KB
testcase_03 AC 36 ms
52,724 KB
testcase_04 AC 39 ms
57,800 KB
testcase_05 AC 43 ms
57,172 KB
testcase_06 AC 43 ms
57,796 KB
testcase_07 AC 41 ms
57,892 KB
testcase_08 AC 39 ms
58,612 KB
testcase_09 AC 39 ms
57,452 KB
testcase_10 AC 41 ms
58,080 KB
testcase_11 AC 39 ms
58,108 KB
testcase_12 AC 41 ms
57,592 KB
testcase_13 AC 42 ms
58,052 KB
testcase_14 AC 42 ms
59,312 KB
testcase_15 AC 42 ms
58,652 KB
testcase_16 AC 41 ms
58,984 KB
testcase_17 AC 40 ms
59,168 KB
testcase_18 AC 40 ms
57,384 KB
testcase_19 AC 39 ms
58,532 KB
testcase_20 AC 39 ms
58,908 KB
testcase_21 AC 41 ms
57,108 KB
testcase_22 AC 40 ms
58,484 KB
testcase_23 AC 41 ms
58,772 KB
testcase_24 AC 42 ms
57,648 KB
testcase_25 AC 40 ms
57,888 KB
testcase_26 AC 40 ms
58,904 KB
testcase_27 AC 36 ms
52,664 KB
testcase_28 AC 40 ms
57,940 KB
testcase_29 AC 37 ms
53,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
for i in range(2, N + 1):
    while N % i == 0:
        ans += i
        N //= i
        
print(ans)
    
0