結果

問題 No.1176 少ない質問
ユーザー tanon710tanon710
提出日時 2020-08-21 22:30:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 160 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 82,556 KB
実行使用メモリ 55,020 KB
最終ジャッジ日時 2024-04-23 06:11:05
合計ジャッジ時間 1,513 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
55,020 KB
testcase_01 AC 34 ms
53,628 KB
testcase_02 AC 39 ms
52,888 KB
testcase_03 AC 38 ms
54,216 KB
testcase_04 AC 35 ms
53,400 KB
testcase_05 AC 34 ms
52,820 KB
testcase_06 AC 34 ms
53,136 KB
testcase_07 AC 35 ms
53,484 KB
testcase_08 AC 33 ms
53,964 KB
testcase_09 AC 35 ms
53,500 KB
testcase_10 AC 34 ms
53,692 KB
testcase_11 AC 33 ms
54,464 KB
testcase_12 AC 33 ms
53,556 KB
testcase_13 AC 33 ms
53,804 KB
testcase_14 AC 33 ms
53,940 KB
testcase_15 AC 34 ms
54,332 KB
testcase_16 AC 34 ms
53,420 KB
testcase_17 AC 36 ms
53,556 KB
testcase_18 AC 35 ms
54,128 KB
testcase_19 AC 33 ms
53,560 KB
testcase_20 AC 35 ms
53,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ans=10**18
a=int(input())
for n in [2,3,5,7,11]:
    for m in range(100,-1,-1):
        if n**m<a:
            ans=min(ans,n*(m+1))
            break
print(ans)
0