結果

問題 No.1664 Unstable f(n)
ユーザー DrDrpilotDrDrpilot
提出日時 2022-03-16 11:15:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 489 ms
コンパイル使用メモリ 81,724 KB
実行使用メモリ 196,928 KB
最終ジャッジ日時 2023-10-24 15:54:58
合計ジャッジ時間 16,912 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
59,792 KB
testcase_01 AC 306 ms
119,888 KB
testcase_02 AC 115 ms
96,828 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 44 ms
59,792 KB
testcase_07 AC 44 ms
59,792 KB
testcase_08 AC 44 ms
59,792 KB
testcase_09 AC 44 ms
59,792 KB
testcase_10 AC 44 ms
59,792 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 158 ms
98,740 KB
testcase_22 AC 184 ms
114,476 KB
testcase_23 AC 177 ms
114,296 KB
testcase_24 AC 130 ms
97,396 KB
testcase_25 AC 159 ms
98,756 KB
testcase_26 AC 59 ms
71,616 KB
testcase_27 AC 58 ms
71,340 KB
testcase_28 AC 96 ms
94,040 KB
testcase_29 AC 53 ms
68,160 KB
testcase_30 AC 62 ms
74,728 KB
testcase_31 AC 123 ms
97,756 KB
testcase_32 AC 472 ms
141,536 KB
testcase_33 AC 212 ms
115,096 KB
testcase_34 AC 122 ms
97,828 KB
testcase_35 AC 948 ms
193,464 KB
testcase_36 AC 197 ms
114,772 KB
testcase_37 AC 668 ms
155,996 KB
testcase_38 AC 53 ms
68,160 KB
testcase_39 AC 462 ms
141,060 KB
testcase_40 AC 511 ms
135,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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