結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
97,124 KB
testcase_01 AC 534 ms
146,460 KB
testcase_02 AC 392 ms
140,192 KB
testcase_03 AC 100 ms
97,176 KB
testcase_04 AC 100 ms
97,108 KB
testcase_05 AC 100 ms
97,112 KB
testcase_06 AC 99 ms
97,112 KB
testcase_07 AC 100 ms
97,112 KB
testcase_08 AC 101 ms
97,112 KB
testcase_09 AC 100 ms
97,112 KB
testcase_10 AC 101 ms
97,124 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 434 ms
141,836 KB
testcase_22 AC 429 ms
141,792 KB
testcase_23 AC 424 ms
140,680 KB
testcase_24 AC 403 ms
141,084 KB
testcase_25 AC 427 ms
141,832 KB
testcase_26 AC 142 ms
99,044 KB
testcase_27 AC 139 ms
98,368 KB
testcase_28 AC 249 ms
120,968 KB
testcase_29 AC 112 ms
97,580 KB
testcase_30 AC 189 ms
115,012 KB
testcase_31 AC 396 ms
140,976 KB
testcase_32 AC 642 ms
170,676 KB
testcase_33 AC 446 ms
142,196 KB
testcase_34 AC 396 ms
140,912 KB
testcase_35 AC 1,088 ms
232,072 KB
testcase_36 AC 434 ms
141,964 KB
testcase_37 AC 863 ms
208,632 KB
testcase_38 AC 106 ms
95,328 KB
testcase_39 AC 637 ms
170,300 KB
testcase_40 AC 722 ms
180,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=[]
for i in range(1,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