結果
| 問題 |
No.1176 少ない質問
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-16 13:58:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 1,000 ms |
| コード長 | 203 bytes |
| コンパイル時間 | 115 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-09 10:47:06 |
| 合計ジャッジ時間 | 1,737 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
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
if N>=ans:break
print(ans)