結果

問題 No.1176 少ない質問
ユーザー penguinmanpenguinman
提出日時 2020-11-01 01:17:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 198 ms / 1,000 ms
コード長 296 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 77,220 KB
最終ジャッジ日時 2023-09-29 10:56:47
合計ジャッジ時間 5,513 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 197 ms
76,980 KB
testcase_01 AC 198 ms
76,940 KB
testcase_02 AC 196 ms
77,020 KB
testcase_03 AC 196 ms
76,976 KB
testcase_04 AC 197 ms
76,968 KB
testcase_05 AC 197 ms
76,752 KB
testcase_06 AC 195 ms
77,060 KB
testcase_07 AC 194 ms
77,220 KB
testcase_08 AC 194 ms
77,036 KB
testcase_09 AC 197 ms
77,012 KB
testcase_10 AC 196 ms
76,764 KB
testcase_11 AC 195 ms
76,916 KB
testcase_12 AC 196 ms
76,916 KB
testcase_13 AC 196 ms
77,076 KB
testcase_14 AC 195 ms
76,952 KB
testcase_15 AC 196 ms
77,108 KB
testcase_16 AC 196 ms
76,920 KB
testcase_17 AC 195 ms
77,040 KB
testcase_18 AC 194 ms
77,008 KB
testcase_19 AC 195 ms
77,136 KB
testcase_20 AC 197 ms
76,900 KB
権限があれば一括ダウンロードができます

ソースコード

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