結果

問題 No.1176 少ない質問
ユーザー uni_pythonuni_python
提出日時 2020-08-21 22:27:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 608 ms / 1,000 ms
コード長 497 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 87,276 KB
実行使用メモリ 76,340 KB
最終ジャッジ日時 2023-08-05 08:23:50
合計ジャッジ時間 13,724 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 596 ms
75,972 KB
testcase_01 AC 585 ms
76,088 KB
testcase_02 AC 603 ms
76,276 KB
testcase_03 AC 608 ms
76,020 KB
testcase_04 AC 591 ms
76,280 KB
testcase_05 AC 591 ms
76,060 KB
testcase_06 AC 581 ms
76,276 KB
testcase_07 AC 586 ms
76,120 KB
testcase_08 AC 583 ms
76,228 KB
testcase_09 AC 583 ms
75,928 KB
testcase_10 AC 566 ms
76,340 KB
testcase_11 AC 567 ms
75,924 KB
testcase_12 AC 590 ms
76,140 KB
testcase_13 AC 571 ms
76,092 KB
testcase_14 AC 592 ms
76,016 KB
testcase_15 AC 593 ms
76,148 KB
testcase_16 AC 591 ms
76,128 KB
testcase_17 AC 597 ms
76,216 KB
testcase_18 AC 576 ms
76,016 KB
testcase_19 AC 586 ms
76,208 KB
testcase_20 AC 96 ms
75,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    A=I()
    ans=A
    for i in range(2,10**7):
        p=1
        cnt=0
        while True:
            if p>=A:
                break
            else:
                p*=i
                cnt+=1
                
        temp=i*cnt
        ans=min(ans,temp)
        
    print(ans)
           
    


main()
0