結果
| 問題 |
No.1176 少ない質問
|
| コンテスト | |
| ユーザー |
tktk_snsn
|
| 提出日時 | 2020-08-21 22:06:22 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 1,000 ms |
| コード長 | 236 bytes |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-15 05:40:15 |
| 合計ジャッジ時間 | 1,307 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
def F(A, b):
cnt = 0
while A:
A //= b
cnt += 1
return b * cnt
A = int(input())
ans = A
b = 2
while True:
x = F(A, b)
if x < ans:
ans = x
b += 1
continue
break
print(ans)
tktk_snsn