結果

問題 No.1176 少ない質問
ユーザー roarisroaris
提出日時 2020-08-21 21:30:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 122 ms / 1,000 ms
コード長 233 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 82,816 KB
実行使用メモリ 75,932 KB
最終ジャッジ日時 2024-04-23 05:29:35
合計ジャッジ時間 3,105 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
75,932 KB
testcase_01 AC 95 ms
75,776 KB
testcase_02 AC 114 ms
75,672 KB
testcase_03 AC 112 ms
75,520 KB
testcase_04 AC 100 ms
75,520 KB
testcase_05 AC 105 ms
75,648 KB
testcase_06 AC 97 ms
75,864 KB
testcase_07 AC 114 ms
75,508 KB
testcase_08 AC 122 ms
75,392 KB
testcase_09 AC 116 ms
75,576 KB
testcase_10 AC 94 ms
75,648 KB
testcase_11 AC 98 ms
75,776 KB
testcase_12 AC 101 ms
75,520 KB
testcase_13 AC 91 ms
75,776 KB
testcase_14 AC 111 ms
75,392 KB
testcase_15 AC 116 ms
75,904 KB
testcase_16 AC 104 ms
75,776 KB
testcase_17 AC 112 ms
75,648 KB
testcase_18 AC 93 ms
75,876 KB
testcase_19 AC 105 ms
75,520 KB
testcase_20 AC 50 ms
59,136 KB
権限があれば一括ダウンロードができます

ソースコード

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