結果
| 問題 | No.1664 Unstable f(n) | 
| コンテスト | |
| ユーザー |  Nachia | 
| 提出日時 | 2021-09-03 21:50:55 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 155 bytes | 
| コンパイル時間 | 126 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-12-15 12:31:11 | 
| 合計ジャッジ時間 | 2,884 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 2 | 
| other | AC * 19 WA * 19 | 
ソースコード
n = int(input())
ans = n
for i in range(1,100) :
    for j in range(1,100) :
        if i**j <= n :
            ans = min(ans, i + j + n - i**j)
print(ans)
            
            
            
        