結果

問題 No.1176 少ない質問
ユーザー gorugo30gorugo30
提出日時 2021-02-25 14:56:10
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 297 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 64,360 KB
最終ジャッジ日時 2024-04-08 12:16:58
合計ジャッジ時間 7,390 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

A = int(input())
N = 2
M = 1
while N ** M < A:
    M += 1
ans = N * M
M = 2
N = int(A ** 0.5)
while N * N < A:
    N += 1
ans = min(ans, N * M)
N = 3
M = 1
while N ** M < A:
    M += 1
ans = min(ans, N * M)
M = 3
N = int(A ** 0.333333)
while N * N < A:
    N += 1
ans = min(ans, N * M)
print(ans)
0