結果

問題 No.1664 Unstable f(n)
ユーザー DrDrpilotDrDrpilot
提出日時 2022-03-16 11:19:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 11,820 KB
実行使用メモリ 10,104 KB
最終ジャッジ日時 2023-10-24 15:58:58
合計ジャッジ時間 24,753 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 306 ms
10,044 KB
testcase_01 AC 594 ms
10,044 KB
testcase_02 AC 470 ms
10,044 KB
testcase_03 AC 300 ms
10,044 KB
testcase_04 AC 301 ms
10,044 KB
testcase_05 AC 303 ms
10,044 KB
testcase_06 AC 301 ms
10,044 KB
testcase_07 AC 306 ms
10,044 KB
testcase_08 AC 305 ms
10,044 KB
testcase_09 AC 299 ms
10,044 KB
testcase_10 AC 294 ms
10,044 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 502 ms
10,044 KB
testcase_22 AC 502 ms
10,044 KB
testcase_23 AC 497 ms
10,044 KB
testcase_24 AC 490 ms
10,044 KB
testcase_25 AC 508 ms
10,044 KB
testcase_26 AC 327 ms
10,044 KB
testcase_27 AC 322 ms
10,044 KB
testcase_28 AC 384 ms
10,044 KB
testcase_29 AC 302 ms
10,044 KB
testcase_30 AC 337 ms
10,044 KB
testcase_31 AC 476 ms
10,044 KB
testcase_32 AC 713 ms
10,044 KB
testcase_33 AC 539 ms
10,044 KB
testcase_34 AC 472 ms
10,044 KB
testcase_35 AC 914 ms
10,044 KB
testcase_36 AC 519 ms
10,044 KB
testcase_37 AC 813 ms
10,044 KB
testcase_38 AC 316 ms
10,044 KB
testcase_39 AC 690 ms
10,044 KB
testcase_40 AC 764 ms
10,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=10**18
for i in range(200000):
    for j in range(50):
        if i==0 and j==0:
            continue
        if pow(i,j)>n:
            break
        k=n-pow(i,j)
        ans=min(ans,i+j+k)
print(ans)
0