結果

問題 No.1176 少ない質問
ユーザー penguinmanpenguinman
提出日時 2020-11-01 01:16:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 77,132 KB
最終ジャッジ日時 2023-09-29 10:56:35
合計ジャッジ時間 5,438 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 196 ms
77,016 KB
testcase_01 AC 197 ms
76,996 KB
testcase_02 AC 196 ms
76,900 KB
testcase_03 AC 196 ms
76,752 KB
testcase_04 AC 195 ms
76,896 KB
testcase_05 AC 198 ms
77,128 KB
testcase_06 AC 197 ms
77,064 KB
testcase_07 AC 197 ms
76,800 KB
testcase_08 AC 196 ms
76,936 KB
testcase_09 AC 196 ms
76,996 KB
testcase_10 AC 196 ms
76,904 KB
testcase_11 AC 194 ms
77,132 KB
testcase_12 AC 195 ms
76,956 KB
testcase_13 AC 197 ms
76,784 KB
testcase_14 AC 198 ms
76,960 KB
testcase_15 AC 193 ms
76,988 KB
testcase_16 AC 195 ms
76,980 KB
testcase_17 AC 195 ms
77,060 KB
testcase_18 AC 195 ms
76,972 KB
testcase_19 AC 200 ms
76,980 KB
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
ans=int(1e100)
for i in range(100):
    if i==0:
        continue
    x=pow(N,1/i)
    x=int(x)
    #print(x**i)
    if(x**i>N):
        ans=min(ans,x*i)
    for j in range(1000):
        x+=1
        if(x**i>N):
            ans=min(ans,x*i)
if N==int(1e18):
    x=1/0
print(ans)
0