結果
| 問題 |
No.1737 One to N
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:02:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 82,400 KB |
| 実行使用メモリ | 53,988 KB |
| 最終ジャッジ日時 | 2025-03-20 21:03:00 |
| 合計ジャッジ時間 | 2,135 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
n = int(input())
if n == 1:
print(0)
else:
total = 0
i = 2
while i * i <= n:
while n % i == 0:
total += i
n //= i
i += 1
if n > 1:
total += n
print(total)
lam6er