#Lutece2762. FREE的手办
FREE的手办
Migrated from Lutece 2762 FREE的手办
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
假设 FREE 有 个手办,小手办们排成一排,每个手办按照入手批次从第 个到第 个被贴上了一个标号 。假设一共 次操作,两种操作分别为:
将数列 这个区间中所有比 小的数改为 ;
查询 的区间中比 小的最小的 个数。
Input
第一行为 ,表示手办总数。
接下来一行 个数 ,表示第 个手办的标号。
接下来一行为 ,表示总操作数。
接下来 行,格式见「题目描述」。
Output
对于每次查询,输出一行 个数,每个数中间以空格间隔,按从小到大顺序排列;如果区间内小于 的数不足 个,输出 。
Samples
3
1 2 3
4
1 1 2 2
2 1 3 1 3
2 1 3 2 1
2 1 3 3 2
-1
-1
2 2
Constraints
Resources
2022 UESTC ICPC Training for Data Structures