結果
問題 |
No.1664 Unstable f(n)
|
ユーザー |
|
提出日時 | 2022-02-02 15:12:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 157 bytes |
コンパイル時間 | 375 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-11 09:26:21 |
合計ジャッジ時間 | 2,713 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 38 |
ソースコード
#yuki1664 n=int(input()) res=n for i in range(2,100): t=int(n**(1/i)) for x in range(t-3,t+3): if x>0 and x**i<=n: res=min(res,i+x+n-x**i) print(res)