RiseOJ는 solved.ac와 제휴 관계가 없습니다. 티어 아이콘 © solved.ac. solved.ac
포럼
문제 R03771

Monster-Go

스페셜 저지 — 출력을 사용자 정의 프로그램으로 검사하므로 여러 정답이 인정될 수 있습니다.
설명

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 \(50\) different monster types that the friends can catch, numbered \(0,1,\ldots,49\).

To make the game more exciting, the \(N\) friends have decided that each player will have a personalized list of exactly \(12\) 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 \(N\), the number of people playing, for which you are able to solve the problem.

제약
  • \(1 \leq N \leq 50\).

Your solution will be tested on a set of test groups, each worth a number of points. The \(i\)th test group contains a single test case with \(N = i\) and is worth \(2\) points. That is, there are a total of \(50\) tests (one for each \(N = 1, 2, \ldots, 50\)), and your score on this problem is twice the number of tests your program solves.

Group | Score | Limits 1 | 2 | \(N = 1\) 2 | 2 | \(N = 2\) 3 | 2 | \(N = 3\) \(\vdots\) | \(\vdots\) | \(\vdots\) 49 | 2 | \(N = 49\) 50 | 2 | \(N = 50\)

입력 형식

The first and only line of input contains the integer \(N\), the number of players.

출력 형식

Output \(N\) lines, where the \(i\)th line has \(12\) distinct integers \(c_{i,1}, c_{i,2}, \ldots, c_{i,12}\) (where \(0 \le c_{i,j} \le 49\)) representing the monster types on the list of person \(i\). If there are multiple solutions, you may print any of them.

서브태스크
서브태스크점수설명

Subtask 001

2점

None

Subtask 002

2점

None

Subtask 003

2점

None

Subtask 004

2점

None

Subtask 005

2점

None

Subtask 006

2점

None

Subtask 007

2점

None

Subtask 008

2점

None

Subtask 009

2점

None

Subtask 010

2점

None

Subtask 011

2점

None

Subtask 012

2점

None

Subtask 013

2점

None

Subtask 014

2점

None

Subtask 015

2점

None

Subtask 016

2점

None

Subtask 017

2점

None

Subtask 018

2점

None

Subtask 019

2점

None

Subtask 020

2점

None

Subtask 021

2점

None

Subtask 022

2점

None

Subtask 023

2점

None

Subtask 024

2점

None

Subtask 025

2점

None

Subtask 026

2점

None

Subtask 027

2점

None

Subtask 028

2점

None

Subtask 029

2점

None

Subtask 030

2점

None

Subtask 031

2점

None

Subtask 032

2점

None

Subtask 033

2점

None

Subtask 034

2점

None

Subtask 035

2점

None

Subtask 036

2점

None

Subtask 037

2점

None

Subtask 038

2점

None

Subtask 039

2점

None

Subtask 040

2점

None

Subtask 041

2점

None

Subtask 042

2점

None

Subtask 043

2점

None

Subtask 044

2점

None

Subtask 045

2점

None

Subtask 046

2점

None

Subtask 047

2점

None

Subtask 048

2점

None

Subtask 049

2점

None

Subtask 050

2점

None

예제 1
입력
2
출력
0 1 2 3 4 5 6 7 8 9 10 11
38 39 40 41 42 43 44 45 46 47 48 49
문제 정보

rip 작성

출처 EGOI 2025

평가 및 의견

Monster-Go

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 50 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

Monster-Go

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8