結果

問題 No.1664 Unstable f(n)
ユーザー 👑 rin204rin204
提出日時 2021-09-03 21:28:31
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 250 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 82,312 KB
実行使用メモリ 82,456 KB
最終ジャッジ日時 2024-05-09 01:47:22
合計ジャッジ時間 6,032 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
59,564 KB
testcase_01 AC 46 ms
65,376 KB
testcase_02 AC 41 ms
60,696 KB
testcase_03 AC 35 ms
53,896 KB
testcase_04 AC 36 ms
52,276 KB
testcase_05 AC 35 ms
52,700 KB
testcase_06 AC 34 ms
52,120 KB
testcase_07 AC 35 ms
51,956 KB
testcase_08 AC 35 ms
53,104 KB
testcase_09 AC 36 ms
52,396 KB
testcase_10 AC 34 ms
52,624 KB
testcase_11 AC 1,694 ms
76,084 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = n
for i in range(2, n):
    if i >= ans:
        break
    tmp = 1
    for j in range(n):
        if i + j >= ans or tmp > n:
            break
        k = n - tmp
        ans = min(ans, i + j + k)
        tmp *= i

print(ans)
0