結果

問題 No.1176 少ない質問
ユーザー Kite_kumaKite_kuma
提出日時 2020-10-16 21:19:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 187 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 76,160 KB
最終ジャッジ日時 2023-09-28 02:31:27
合計ジャッジ時間 2,740 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
76,008 KB
testcase_01 AC 68 ms
76,120 KB
testcase_02 AC 69 ms
75,920 KB
testcase_03 AC 68 ms
75,804 KB
testcase_04 AC 69 ms
75,924 KB
testcase_05 AC 72 ms
76,128 KB
testcase_06 AC 68 ms
75,940 KB
testcase_07 AC 68 ms
75,908 KB
testcase_08 AC 68 ms
76,160 KB
testcase_09 AC 68 ms
75,976 KB
testcase_10 AC 67 ms
75,968 KB
testcase_11 AC 70 ms
75,676 KB
testcase_12 AC 68 ms
75,892 KB
testcase_13 AC 67 ms
75,896 KB
testcase_14 AC 67 ms
76,024 KB
testcase_15 AC 68 ms
75,816 KB
testcase_16 AC 68 ms
75,920 KB
testcase_17 AC 70 ms
76,052 KB
testcase_18 AC 68 ms
75,716 KB
testcase_19 AC 68 ms
75,808 KB
testcase_20 AC 62 ms
71,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = int(input())
ans = 10000000000000000000 * a
for n in range(2, 1000):
    res = 1
    m = 0
    while (res < a):
        res *= n
        m += 1
    ans = min(ans, m * (n))
print(ans)
0