#P2391. 白雪皑皑
白雪皑皑
Description
There are snowflakes arranged in a line. pty will perform coloring operations. In the -th coloring operation, he colors all snowflakes between the -th snowflake and the -th snowflake (inclusive) with color . Here are two given positive integers. He wants to know the final color of each of the snowflakes. Output for any snowflake that is never colored.
Input Format
The input consists of four lines, each containing one integer, namely , as described above.
Output Format
Output lines. The -th line contains one integer, the color of the -th snowflake.
4
3
2
4
2
2
3
0
Hint
- For of the testdata: .
- For of the testdata: , .
- For of the testdata: , .
- For of the testdata: , .
It is guaranteed that .
Translated by ChatGPT 5
京公网安备 11011102002149号