Example 1

Example 2

1 <= queries.length <= 15 * 1042 <= queries[i].length <= 31 <= queries[i][0] <= 21 <= x, sz <= min(5 * 104, 3 * queries.length)The input is generated such that for queries of type 1, no obstacle exists at distance x when the query is asked.The input is generated such that there is at least one query of type 2.Example 1

Example 2

1 <= queries.length <= 15 * 1042 <= queries[i].length <= 31 <= queries[i][0] <= 21 <= x, sz <= min(5 * 104, 3 * queries.length)The input is generated such that for queries of type 1, no obstacle exists at distance x when the query is asked.The input is generated such that there is at least one query of type 2.