結果

問題 No.1664 Unstable f(n)
ユーザー O2MTO2MT
提出日時 2021-09-07 23:47:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 71,964 KB
最終ジャッジ日時 2023-08-25 18:13:55
合計ジャッジ時間 4,692 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,652 KB
testcase_01 AC 65 ms
71,404 KB
testcase_02 AC 65 ms
71,688 KB
testcase_03 AC 63 ms
71,120 KB
testcase_04 AC 69 ms
71,820 KB
testcase_05 AC 66 ms
71,776 KB
testcase_06 AC 66 ms
71,708 KB
testcase_07 AC 65 ms
71,720 KB
testcase_08 AC 65 ms
71,492 KB
testcase_09 AC 64 ms
71,596 KB
testcase_10 AC 65 ms
71,744 KB
testcase_11 AC 62 ms
71,668 KB
testcase_12 AC 65 ms
71,884 KB
testcase_13 AC 68 ms
71,784 KB
testcase_14 AC 64 ms
71,732 KB
testcase_15 AC 64 ms
71,700 KB
testcase_16 AC 66 ms
71,680 KB
testcase_17 AC 64 ms
71,844 KB
testcase_18 AC 61 ms
71,560 KB
testcase_19 AC 64 ms
71,780 KB
testcase_20 AC 66 ms
71,600 KB
testcase_21 AC 66 ms
71,868 KB
testcase_22 AC 62 ms
71,880 KB
testcase_23 AC 62 ms
71,504 KB
testcase_24 AC 64 ms
71,716 KB
testcase_25 AC 65 ms
71,964 KB
testcase_26 AC 65 ms
71,812 KB
testcase_27 AC 64 ms
71,764 KB
testcase_28 AC 65 ms
71,688 KB
testcase_29 AC 65 ms
71,832 KB
testcase_30 AC 65 ms
71,720 KB
testcase_31 AC 65 ms
71,680 KB
testcase_32 AC 67 ms
71,596 KB
testcase_33 AC 69 ms
71,444 KB
testcase_34 AC 67 ms
71,804 KB
testcase_35 AC 69 ms
71,648 KB
testcase_36 AC 67 ms
71,612 KB
testcase_37 AC 64 ms
71,680 KB
testcase_38 AC 72 ms
71,816 KB
testcase_39 AC 65 ms
71,508 KB
testcase_40 AC 63 ms
71,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = N
for j in range(1,1001):
  i = int(pow(N,1/j))
  while i**j <= N:
    k = N-i**j
    ans = min(ans,i+j+k)
    i += 1

print(ans)
0