結果

問題 No.1176 少ない質問
ユーザー uni_pythonuni_python
提出日時 2020-08-21 22:27:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 496 ms / 1,000 ms
コード長 497 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 75,476 KB
最終ジャッジ日時 2024-04-23 06:08:28
合計ジャッジ時間 11,056 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 484 ms
75,136 KB
testcase_01 AC 478 ms
74,880 KB
testcase_02 AC 491 ms
74,980 KB
testcase_03 AC 486 ms
75,136 KB
testcase_04 AC 473 ms
75,048 KB
testcase_05 AC 482 ms
74,968 KB
testcase_06 AC 470 ms
75,264 KB
testcase_07 AC 474 ms
75,476 KB
testcase_08 AC 478 ms
75,008 KB
testcase_09 AC 477 ms
75,136 KB
testcase_10 AC 469 ms
74,880 KB
testcase_11 AC 461 ms
75,136 KB
testcase_12 AC 474 ms
75,052 KB
testcase_13 AC 462 ms
75,264 KB
testcase_14 AC 496 ms
74,880 KB
testcase_15 AC 480 ms
75,352 KB
testcase_16 AC 475 ms
74,880 KB
testcase_17 AC 490 ms
75,264 KB
testcase_18 AC 467 ms
75,392 KB
testcase_19 AC 481 ms
75,264 KB
testcase_20 AC 67 ms
57,728 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