結果

問題 No.1664 Unstable f(n)
ユーザー playerplayer
提出日時 2023-12-26 22:15:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 59,756 KB
最終ジャッジ日時 2023-12-26 22:15:50
合計ジャッジ時間 4,254 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
59,628 KB
testcase_01 AC 55 ms
59,756 KB
testcase_02 AC 49 ms
59,756 KB
testcase_03 AC 40 ms
59,628 KB
testcase_04 AC 40 ms
59,628 KB
testcase_05 AC 41 ms
59,628 KB
testcase_06 AC 42 ms
59,628 KB
testcase_07 AC 43 ms
59,628 KB
testcase_08 AC 42 ms
59,628 KB
testcase_09 AC 41 ms
59,628 KB
testcase_10 AC 43 ms
59,628 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 55 ms
59,756 KB
testcase_22 AC 54 ms
59,756 KB
testcase_23 AC 54 ms
59,756 KB
testcase_24 AC 55 ms
59,756 KB
testcase_25 AC 55 ms
59,756 KB
testcase_26 AC 45 ms
59,756 KB
testcase_27 AC 45 ms
59,756 KB
testcase_28 AC 46 ms
59,756 KB
testcase_29 AC 44 ms
59,756 KB
testcase_30 AC 45 ms
59,756 KB
testcase_31 AC 55 ms
59,756 KB
testcase_32 AC 69 ms
59,756 KB
testcase_33 AC 57 ms
59,756 KB
testcase_34 AC 56 ms
59,756 KB
testcase_35 AC 78 ms
59,756 KB
testcase_36 AC 55 ms
59,756 KB
testcase_37 AC 70 ms
59,756 KB
testcase_38 AC 44 ms
59,756 KB
testcase_39 AC 65 ms
59,756 KB
testcase_40 AC 71 ms
59,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

ans = 10**100

for j in range(0,73):
    for i in range(1,10**6+1):
        num = i**j
        if num > n:
            break
        k = n-num
        ans = min(ans,i+j+k)
        
print(ans)
0