結果
| 問題 |
No.1176 少ない質問
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-16 13:52:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 188 bytes |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 21,120 KB |
| 最終ジャッジ日時 | 2024-10-09 10:40:41 |
| 合計ジャッジ時間 | 4,773 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 20 |
ソースコード
import math
A=int(input())
ans=A
for N in range(2,round(math.sqrt(A+2))+1):
x=round(math.log2(A)/math.log2(N))
while A<=N**x:x-=1
x+=1
if ans>N*x: ans=N*x
print(ans)