結果

問題 No.1664 Unstable f(n)
ユーザー titiatitia
提出日時 2021-09-03 21:24:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 76,032 KB
最終ジャッジ日時 2024-05-09 01:23:51
合計ジャッジ時間 11,060 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
59,264 KB
testcase_01 AC 105 ms
75,776 KB
testcase_02 AC 94 ms
75,904 KB
testcase_03 AC 62 ms
59,392 KB
testcase_04 AC 61 ms
59,264 KB
testcase_05 AC 63 ms
59,392 KB
testcase_06 AC 66 ms
59,648 KB
testcase_07 AC 63 ms
59,264 KB
testcase_08 AC 65 ms
59,264 KB
testcase_09 AC 63 ms
59,520 KB
testcase_10 AC 62 ms
59,392 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 102 ms
75,648 KB
testcase_22 AC 104 ms
75,520 KB
testcase_23 AC 106 ms
75,648 KB
testcase_24 AC 102 ms
75,520 KB
testcase_25 AC 105 ms
75,648 KB
testcase_26 AC 65 ms
61,440 KB
testcase_27 AC 64 ms
60,928 KB
testcase_28 AC 88 ms
75,520 KB
testcase_29 AC 62 ms
59,904 KB
testcase_30 AC 87 ms
75,520 KB
testcase_31 AC 103 ms
75,392 KB
testcase_32 AC 121 ms
75,520 KB
testcase_33 AC 103 ms
75,648 KB
testcase_34 AC 102 ms
75,648 KB
testcase_35 AC 632 ms
75,776 KB
testcase_36 AC 106 ms
75,648 KB
testcase_37 AC 190 ms
75,776 KB
testcase_38 AC 87 ms
75,520 KB
testcase_39 AC 115 ms
75,776 KB
testcase_40 AC 125 ms
75,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

n=int(input())

ANS=n

for i in range(2,10**6):
    for j in range(100):
        if i**j>n:
            break
        else:
            ANS=min(ANS,i+j+n-i**j)

print(ANS)
0