結果

問題 No.1176 少ない質問
ユーザー tamatotamato
提出日時 2020-08-21 21:25:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 450 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 82,492 KB
実行使用メモリ 53,968 KB
最終ジャッジ日時 2024-04-23 05:24:19
合計ジャッジ時間 1,627 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,676 KB
testcase_01 AC 34 ms
52,876 KB
testcase_02 AC 35 ms
53,456 KB
testcase_03 AC 37 ms
53,076 KB
testcase_04 AC 36 ms
52,672 KB
testcase_05 AC 34 ms
52,532 KB
testcase_06 AC 34 ms
53,000 KB
testcase_07 AC 33 ms
53,752 KB
testcase_08 AC 34 ms
53,148 KB
testcase_09 AC 33 ms
53,480 KB
testcase_10 AC 33 ms
52,940 KB
testcase_11 AC 34 ms
53,080 KB
testcase_12 AC 33 ms
53,968 KB
testcase_13 AC 34 ms
52,720 KB
testcase_14 AC 34 ms
53,152 KB
testcase_15 AC 34 ms
53,472 KB
testcase_16 AC 33 ms
53,500 KB
testcase_17 AC 33 ms
52,132 KB
testcase_18 AC 34 ms
53,148 KB
testcase_19 AC 33 ms
52,384 KB
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    A = int(input())
    ans = 10**20
    flg = 0
    for d in range(2, A+1):
        for b in range(100):
            if d ** b >= A:
                if ans >= d * b:
                    ans = d*b
                else:
                    flg = 1
                break
        if flg:
            break
    print(ans)


if __name__ == '__main__':
    main()
0