結果
| 問題 | No.1255 ハイレーツ・オブ・ボリビアン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-09 22:50:36 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 382 bytes |
| 記録 | |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 85,700 KB |
| 実行使用メモリ | 93,672 KB |
| 最終ジャッジ日時 | 2026-04-02 23:58:29 |
| 合計ジャッジ時間 | 4,052 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 TLE * 1 -- * 7 |
ソースコード
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")
t = int(input())
for _ in range(t):
n = int(input())
ans = 0
v = 2
done = False
while not done:
v = (n + v//2) if v%2==0 else (v//2 + 1)
ans += 1
if v==2:
done = True
print(ans)