結果

問題 No.1176 少ない質問
ユーザー Kak1_n0_taneKak1_n0_tane
提出日時 2020-07-24 02:32:36
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 36 ms / 1,000 ms
コード長 186 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 10,504 KB
実行使用メモリ 7,876 KB
最終ジャッジ日時 2023-09-09 06:51:39
合計ジャッジ時間 1,941 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
7,748 KB
testcase_01 AC 33 ms
7,840 KB
testcase_02 AC 33 ms
7,848 KB
testcase_03 AC 33 ms
7,780 KB
testcase_04 AC 33 ms
7,876 KB
testcase_05 AC 34 ms
7,704 KB
testcase_06 AC 34 ms
7,804 KB
testcase_07 AC 34 ms
7,712 KB
testcase_08 AC 33 ms
7,844 KB
testcase_09 AC 34 ms
7,784 KB
testcase_10 AC 34 ms
7,728 KB
testcase_11 AC 33 ms
7,800 KB
testcase_12 AC 34 ms
7,812 KB
testcase_13 AC 32 ms
7,800 KB
testcase_14 AC 35 ms
7,732 KB
testcase_15 AC 34 ms
7,712 KB
testcase_16 AC 34 ms
7,856 KB
testcase_17 AC 35 ms
7,736 KB
testcase_18 AC 34 ms
7,732 KB
testcase_19 AC 34 ms
7,784 KB
testcase_20 AC 23 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 10**18 + 1
for i in range(2,10000):
    k = 1
    count = 1
    while k < n:
        k *= i
        count += 1
    count -= 1
    ans = min(ans,count*i)
print(ans)
0