結果

問題 No.1176 少ない質問
ユーザー stngstng
提出日時 2022-09-24 17:45:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 1,000 ms
コード長 216 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 76,320 KB
最終ジャッジ日時 2023-08-24 00:31:32
合計ジャッジ時間 3,192 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
76,064 KB
testcase_01 AC 70 ms
76,020 KB
testcase_02 AC 70 ms
76,060 KB
testcase_03 AC 70 ms
75,772 KB
testcase_04 AC 75 ms
75,796 KB
testcase_05 AC 72 ms
75,852 KB
testcase_06 AC 71 ms
75,740 KB
testcase_07 AC 72 ms
76,288 KB
testcase_08 AC 73 ms
75,864 KB
testcase_09 AC 72 ms
76,116 KB
testcase_10 AC 71 ms
75,736 KB
testcase_11 AC 71 ms
75,980 KB
testcase_12 AC 70 ms
75,972 KB
testcase_13 AC 70 ms
75,996 KB
testcase_14 AC 70 ms
75,908 KB
testcase_15 AC 72 ms
76,320 KB
testcase_16 AC 70 ms
75,928 KB
testcase_17 AC 71 ms
75,796 KB
testcase_18 AC 70 ms
75,728 KB
testcase_19 AC 70 ms
76,048 KB
testcase_20 AC 65 ms
71,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = int(input())

ans = 200
for i in range(2,200):
    n = i
    tmp = n
    for j in range(61):
        if tmp >= a:
            ans = min(ans,n*(j+1))
            break
        else:
            tmp *= i
print(ans)
0