문제
Ivan wants to play a game with you. He took all integers from to inclusive, shuffled them and then put all even numbers into array and all odd numbers into array .
Your task is to find arrays and .
You can ask Ivan questions of certain kind. Each question consists of two integers and . For each question Ivan says whether or not.
You can ask at most questions.
입력
출력
상호작용
First, the testing system writes the integer () — the number of integers Ivan used.
Your solution shall print requests of two types:
- "
?". . The testing system responds with the symbol "<" if or with the symbol ">" otherwise. - "
!" tells the values of and that your program has determined.
Don't forget to flush the output after each request!
Your solution must issue exactly one request of the second type, which must be the last request, and the solution must terminate gracefully after issuing it.
Your solution is allowed to issue at most requests of the first type.
For each test case the number is fixed and the numbers are shuffled using Java built-in shuffle function with fixed seed.
예제 입력 1
5
>
>
<
>
<
<
예제 출력 1
? 1 1
? 1 2
? 1 3
? 2 1
? 2 2
? 2 3
! 4 2 1 3 5
이 문제는 현재 제출할 수 없습니다.
이 현상이 잘못되었다고 생각될 경우 관리자한테 문의주세요.