Monster-Go
면접 대비시간 제한1초메모리 제한2048 MB
N명의 플레이어에게 50종 몬스터 중 12종씩 배정해, 어떤 방문 순서에서도 승자가 정확히 한 명만 나오도록 한다.
문제
Helen and her friends have discovered an amazing new game for their phones. The game, called Monster-Go, is about catching monsters by walking to different monster nests outdoors. There are an infinite number of monsters of a single type available at each nest. When the friends arrive at a monster nest, each of them will catch and add the monster type at that nest to their collection. There are a total of different monster types that the friends can catch, numbered .
To make the game more exciting, the friends have decided that each player will have a personalized list of exactly monster types to collect. The first person to catch all the monsters on their list wins the game. They want to design the lists in such a way that, no matter the order in which they visit the monster nests, there is always a single, unique winner -- never a tie. The friends always walk around together as a group and arrive together at a monster nest.
Can you help them design the lists? Your score will depend on the number of values of , the number of people playing, for which you are able to solve the problem.
입력
The first and only line of input contains the integer , the number of players.
출력
Output lines, where the th line has distinct integers (where ) representing the monster types on the list of person . If there are multiple solutions, you may print any of them.
제한
- .
힌트
In the sample, where there are friends, the program should output two lists. Indeed, for the two lists in the sample output, the friends cannot both win at the same time, no matter the order in which they visit the monster nests. Note that there are many other valid answers.