結果

問題 No.1664 Unstable f(n)
ユーザー kohei2019kohei2019
提出日時 2023-08-12 15:42:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 143 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 54,072 KB
最終ジャッジ日時 2024-04-30 10:04:11
合計ジャッジ時間 2,893 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,392 KB
testcase_01 AC 33 ms
53,156 KB
testcase_02 AC 32 ms
53,488 KB
testcase_03 AC 33 ms
52,640 KB
testcase_04 AC 33 ms
52,952 KB
testcase_05 AC 33 ms
52,568 KB
testcase_06 AC 33 ms
53,376 KB
testcase_07 AC 32 ms
52,412 KB
testcase_08 AC 32 ms
52,420 KB
testcase_09 AC 36 ms
53,028 KB
testcase_10 AC 36 ms
53,376 KB
testcase_11 AC 35 ms
52,528 KB
testcase_12 AC 33 ms
53,244 KB
testcase_13 AC 32 ms
53,632 KB
testcase_14 AC 33 ms
52,876 KB
testcase_15 AC 32 ms
53,424 KB
testcase_16 AC 33 ms
53,952 KB
testcase_17 AC 33 ms
52,472 KB
testcase_18 AC 33 ms
52,328 KB
testcase_19 AC 33 ms
52,008 KB
testcase_20 AC 35 ms
53,480 KB
testcase_21 AC 34 ms
52,240 KB
testcase_22 AC 32 ms
53,372 KB
testcase_23 AC 33 ms
53,716 KB
testcase_24 AC 35 ms
52,256 KB
testcase_25 AC 32 ms
53,100 KB
testcase_26 AC 32 ms
52,948 KB
testcase_27 AC 33 ms
52,880 KB
testcase_28 AC 31 ms
52,556 KB
testcase_29 AC 32 ms
53,632 KB
testcase_30 AC 36 ms
52,600 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 32 ms
53,608 KB
testcase_38 WA -
testcase_39 AC 32 ms
53,100 KB
testcase_40 AC 33 ms
53,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ansmi = n
for j in range(1,61):
    i = int(n**(1/j))
    k = n-i**j
    if ansmi > i+j+k:
        ansmi = i+j+k

print(ansmi)
0