結果
| 問題 | No.1664 Unstable f(n) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-03 21:32:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 147 bytes |
| 記録 | |
| コンパイル時間 | 186 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 60,288 KB |
| 最終ジャッジ日時 | 2026-05-25 22:48:56 |
| 合計ジャッジ時間 | 5,307 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 WA * 1 TLE * 1 -- * 29 |
ソースコード
n = int(input()) ans = n for i in range(2, 10 ** 7): j = 0 while n - pow(i, j) > 0: ans = min(ans, i + j + (n - pow(i, j))) j += 1 print(ans)