結果

問題 No.1176 少ない質問
ユーザー H3PO4
提出日時 2020-08-21 21:31:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 37 ms / 1,000 ms
コード長 151 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-15 05:14:44
合計ジャッジ時間 1,598 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log, ceil

A = int(input())
ans = float('inf')
for i in range(2, 10000):
    x = ceil(log(A, i))
    ans = min(ans, i * x)
print(ans)
0