SP3372 ROUNDT - Round Table
Description
We have a round table with 2\*N seats (1
Input Format
On the first line there will one integer - N. Two more lines of input follow each with N integers in the range \[1, 2N\] - the guests waiting in front of door 1 and door 2 respectively. The first people in the list is the first to enter the room.
Output Format
Single integer the total min number of stand-ups that will happen if we choose the best sequence of letting guest in.