結果

問題 No.1176 少ない質問
ユーザー roarisroaris
提出日時 2020-08-21 21:30:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 233 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 75,648 KB
最終ジャッジ日時 2024-10-15 05:12:53
合計ジャッジ時間 3,149 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

A = int(input())
ans = A

for i in range(2, 10**6):
    now = i
    p = 1
    
    while now<A:
        now *= i
        p += 1
    
    ans = min(ans, i*p)

print(ans)
0