結果
| 問題 |
No.1176 少ない質問
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-21 22:27:23 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 395 bytes |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 82,464 KB |
| 実行使用メモリ | 52,960 KB |
| 最終ジャッジ日時 | 2024-10-15 05:54:44 |
| 合計ジャッジ時間 | 1,795 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 1 |
ソースコード
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)
A = int(input())
cnt = 1
two = 2
three = 3
ans = 10**20
while 1:
two = 2**cnt
three = 3**cnt
if two>=A:
ans = min(ans, 2*cnt)
if three>=A:
ans = min(ans, 3*cnt)
cnt += 1
if two>=A and three>=A:
break
print(ans)