結果

問題 No.1664 Unstable f(n)
ユーザー O2MTO2MT
提出日時 2021-09-07 23:24:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 150 bytes
コンパイル時間 494 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 76,324 KB
最終ジャッジ日時 2023-08-25 17:45:13
合計ジャッジ時間 7,643 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
75,756 KB
testcase_01 AC 99 ms
76,216 KB
testcase_02 AC 83 ms
76,084 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 74 ms
76,008 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 93 ms
76,184 KB
testcase_22 AC 93 ms
76,228 KB
testcase_23 AC 91 ms
76,212 KB
testcase_24 AC 92 ms
76,248 KB
testcase_25 AC 92 ms
75,880 KB
testcase_26 AC 79 ms
76,144 KB
testcase_27 AC 80 ms
76,248 KB
testcase_28 AC 82 ms
76,188 KB
testcase_29 AC 79 ms
76,232 KB
testcase_30 AC 84 ms
76,200 KB
testcase_31 AC 90 ms
76,004 KB
testcase_32 AC 114 ms
76,092 KB
testcase_33 AC 95 ms
76,092 KB
testcase_34 AC 89 ms
76,228 KB
testcase_35 AC 123 ms
76,248 KB
testcase_36 AC 91 ms
76,244 KB
testcase_37 AC 114 ms
76,096 KB
testcase_38 AC 79 ms
76,024 KB
testcase_39 AC 108 ms
76,224 KB
testcase_40 AC 115 ms
76,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = N
for j in range(64):
  for i in range(10**6):
    if i**j > N:
      break
    k = N-i**j
    ans = min(ans,i+j+k)

print(ans)
0