結果

問題 No.1664 Unstable f(n)
ユーザー O2MTO2MT
提出日時 2021-09-07 23:38:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 72,096 KB
最終ジャッジ日時 2023-08-25 18:03:22
合計ジャッジ時間 5,445 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,600 KB
testcase_01 AC 68 ms
71,776 KB
testcase_02 AC 65 ms
71,676 KB
testcase_03 AC 64 ms
71,408 KB
testcase_04 AC 63 ms
71,740 KB
testcase_05 AC 65 ms
71,772 KB
testcase_06 AC 66 ms
71,508 KB
testcase_07 AC 68 ms
71,592 KB
testcase_08 AC 65 ms
71,648 KB
testcase_09 AC 66 ms
71,832 KB
testcase_10 AC 67 ms
71,512 KB
testcase_11 AC 68 ms
71,944 KB
testcase_12 AC 66 ms
71,544 KB
testcase_13 AC 67 ms
71,880 KB
testcase_14 AC 67 ms
71,880 KB
testcase_15 AC 66 ms
71,652 KB
testcase_16 AC 69 ms
71,740 KB
testcase_17 AC 69 ms
71,684 KB
testcase_18 AC 70 ms
71,508 KB
testcase_19 AC 67 ms
71,476 KB
testcase_20 AC 67 ms
71,476 KB
testcase_21 AC 67 ms
71,604 KB
testcase_22 AC 69 ms
71,680 KB
testcase_23 AC 69 ms
71,656 KB
testcase_24 AC 72 ms
71,708 KB
testcase_25 AC 68 ms
71,604 KB
testcase_26 AC 67 ms
71,688 KB
testcase_27 AC 65 ms
71,748 KB
testcase_28 AC 66 ms
71,972 KB
testcase_29 AC 65 ms
71,768 KB
testcase_30 AC 64 ms
71,960 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 65 ms
71,712 KB
testcase_38 WA -
testcase_39 AC 68 ms
71,644 KB
testcase_40 AC 70 ms
71,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import floor
N = int(input())
ans = N
for j in range(1,1001):
  i = floor(N**(1/j))
  k = N-i**j
  if k < 0:
    continue
  ans = min(ans,i+j+k)

print(ans)
0