#P11074. 火大
火大
Background

Problem Description
Given two positive integers , find a sequence of length that satisfies the following two requirements.
- For any integer with , we have , and is an integer.
- For any integers with , there exists an integer with such that .
If such a sequence exists, output a construction; otherwise output fire big.
Input Format
This problem has multiple test cases.
The first line contains a positive integer , representing the number of test cases.
Then follow test cases. For each test case, input two positive integers , with the meaning as described in the statement.
Output Format
For each test case, if there exists a sequence that satisfies the requirements, output one line with numbers representing the sequence . Otherwise, output one line fire big.
5
1 1
2 2
3 3
4 100
100 5
0
0 1
0 2 1
1 50 99 30
fire big
Hint
The Luogu code length limit is .
Scoring
For a certain test point, if your output correctly determines whether a solution exists or not, you can get at least of the score.
In particular, if your output format is invalid, you may get points. One valid output format is outputting zeros on each line.
Constraints
For all testdata, it is guaranteed that , , , and .
There are test points in total, and the test points are not equally weighted. The detailed score of each test point is as follows.
| Test Point ID | Score | ||
|---|---|---|---|
Translated by ChatGPT 5