結果

問題 No.1176 少ない質問
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2020-08-21 21:28:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 266 bytes
コンパイル時間 1,106 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 71,536 KB
最終ジャッジ日時 2023-08-05 07:32:35
合計ジャッジ時間 2,805 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,340 KB
testcase_01 AC 67 ms
71,300 KB
testcase_02 AC 69 ms
71,164 KB
testcase_03 AC 69 ms
71,496 KB
testcase_04 AC 68 ms
71,340 KB
testcase_05 AC 69 ms
71,048 KB
testcase_06 AC 71 ms
71,536 KB
testcase_07 AC 72 ms
71,416 KB
testcase_08 AC 72 ms
71,520 KB
testcase_09 AC 72 ms
71,524 KB
testcase_10 AC 72 ms
71,292 KB
testcase_11 AC 70 ms
71,392 KB
testcase_12 AC 73 ms
71,344 KB
testcase_13 AC 72 ms
71,404 KB
testcase_14 AC 72 ms
71,296 KB
testcase_15 AC 71 ms
71,360 KB
testcase_16 AC 71 ms
71,264 KB
testcase_17 AC 69 ms
71,424 KB
testcase_18 AC 70 ms
71,300 KB
testcase_19 AC 69 ms
71,356 KB
testcase_20 AC 68 ms
71,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

N^M通りの人を区別できる
N*Mの最小を出す

"""

A = int(input())
ans = float("inf")

for i in range(2,60):

    now = 1
    for j in range(1,60):
        now *= i
        if now >= A:
            ans = min(ans , i*j)
            break

print (ans)
0