翻译

CF1066C Books Queries

``` Title Description You need to maintain a data structure to support the following three operations: * $L$$id$: insert a numbered $id$item on the left side of the current sequence. * $R$$id$: inserts an item numbered $id$on the right side of the current sequence. * $? $$id$: there are several elements on the left side of the point, and several elements on the right side, and min output. Input and output format: Input format: The first line, an integer $q$, represents the operand. The following $q$line, 2 numbers per row, represents an operation. Output format For each "?" Operation, output one line and one integer, indicating the answer. ```
by 阿柒 @ 2018-10-13 11:03:44


|