結果
問題 |
No.1664 Unstable f(n)
|
ユーザー |
![]() |
提出日時 | 2021-09-03 21:22:22 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 177 bytes |
コンパイル時間 | 186 ms |
コンパイル使用メモリ | 82,296 KB |
実行使用メモリ | 89,684 KB |
最終ジャッジ日時 | 2024-12-15 09:38:25 |
合計ジャッジ時間 | 127,742 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 3 |
other | TLE * 38 |
ソースコード
n = int(input()) res = n for i in range(1, 1000): for j in range(1, 1000): if i ** j > n: continue res = min(res, i + j + n - i ** j) print(res)