結果

問題 No.1664 Unstable f(n)
ユーザー DrDrpilotDrDrpilot
提出日時 2022-03-16 11:17:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 193 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 81,656 KB
実行使用メモリ 233,888 KB
最終ジャッジ日時 2023-10-24 15:56:59
合計ジャッジ時間 22,313 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
97,128 KB
testcase_01 AC 533 ms
146,444 KB
testcase_02 AC 390 ms
140,812 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 102 ms
97,140 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 427 ms
141,816 KB
testcase_22 AC 423 ms
141,768 KB
testcase_23 AC 415 ms
141,664 KB
testcase_24 AC 401 ms
140,364 KB
testcase_25 AC 425 ms
141,808 KB
testcase_26 AC 140 ms
99,044 KB
testcase_27 AC 135 ms
98,364 KB
testcase_28 AC 239 ms
118,992 KB
testcase_29 AC 110 ms
97,576 KB
testcase_30 AC 183 ms
115,004 KB
testcase_31 AC 394 ms
140,248 KB
testcase_32 AC 637 ms
170,652 KB
testcase_33 AC 443 ms
142,176 KB
testcase_34 AC 394 ms
140,192 KB
testcase_35 AC 1,080 ms
230,856 KB
testcase_36 AC 433 ms
141,940 KB
testcase_37 AC 868 ms
208,024 KB
testcase_38 AC 106 ms
95,324 KB
testcase_39 AC 631 ms
171,468 KB
testcase_40 AC 715 ms
180,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=[]
for i in range(200000):
    for j in range(50):
        if pow(i,j)>n:
            break
        k=n-pow(i,j)
        ans.append((i+j+k,i,j,k))
ans.sort()
print(ans[0][0])
0