結果

問題 No.1176 少ない質問
ユーザー chielochielo
提出日時 2020-08-21 21:35:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 152 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 82,096 KB
実行使用メモリ 66,952 KB
最終ジャッジ日時 2024-04-23 05:35:16
合計ジャッジ時間 1,732 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
65,100 KB
testcase_01 AC 42 ms
64,972 KB
testcase_02 AC 43 ms
66,368 KB
testcase_03 AC 41 ms
65,444 KB
testcase_04 AC 44 ms
66,192 KB
testcase_05 AC 42 ms
66,560 KB
testcase_06 AC 40 ms
65,396 KB
testcase_07 AC 41 ms
66,080 KB
testcase_08 AC 42 ms
66,952 KB
testcase_09 AC 43 ms
66,272 KB
testcase_10 AC 41 ms
66,540 KB
testcase_11 AC 42 ms
66,608 KB
testcase_12 AC 43 ms
65,720 KB
testcase_13 AC 41 ms
66,236 KB
testcase_14 AC 40 ms
65,736 KB
testcase_15 AC 40 ms
66,216 KB
testcase_16 AC 41 ms
66,384 KB
testcase_17 AC 43 ms
66,148 KB
testcase_18 AC 42 ms
66,036 KB
testcase_19 AC 40 ms
65,536 KB
testcase_20 AC 41 ms
65,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 30 ** 100
for b in range(2, 30):
    for i in range(1, 100):
        if b ** i >= n:
            ans = min(ans, i * b)
print(ans)
0