C - Submit Your Test Cases Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MiB

問題文

4つの入力を、以下のように連結し、1つのテキストファイルとして提出せよ。

N K C
g_{0,0} \cdots g_{0,N-1}
\vdots
g_{N-1,0} \cdots g_{N-1,N-1}
N K C
g_{0,0} \cdots g_{0,N-1}
\vdots
g_{N-1,0} \cdots g_{N-1,N-1}
N K C
g_{0,0} \cdots g_{0,N-1}
\vdots
g_{N-1,0} \cdots g_{N-1,N-1}
N K C
g_{0,0} \cdots g_{0,N-1}
\vdots
g_{N-1,0} \cdots g_{N-1,N-1}

各入力は、以下の制約をすべて満たさなければならない。

  • レイヤーの一辺の長さ N は N=32 である。
  • レイヤーの枚数 K は 2 以上 5 以下の整数である。
  • 色の種類数 C は 2 以上 4 以下の整数である。
  • 目標画像のピクセル (i,j) の色 g_{i,j} は 0 以上 C 以下の整数である。
    • 目標画像において、1,\cdots,C のすべての色が出現しなくても良い。
    • 目標画像における非透明なピクセル数は N^2/2 以上である。

作成する 4 つの入力は、すべて互いに異なるものでなければならない。 提出されたテキストファイルに、仕様を満たす 4 つの入力が正しく記述されている場合、AC となり、1 点を獲得する。

Problem Statement

Create four inputs, concatenate them in the format shown below, and submit them as a single text file.

N K C
g_{0,0} \cdots g_{0,N-1}
\vdots
g_{N-1,0} \cdots g_{N-1,N-1}
N K C
g_{0,0} \cdots g_{0,N-1}
\vdots
g_{N-1,0} \cdots g_{N-1,N-1}
N K C
g_{0,0} \cdots g_{0,N-1}
\vdots
g_{N-1,0} \cdots g_{N-1,N-1}
N K C
g_{0,0} \cdots g_{0,N-1}
\vdots
g_{N-1,0} \cdots g_{N-1,N-1}

Each input must satisfy all of the following constraints.

  • The side length N of each layer is N=32.
  • K is an integer between 2 and 5, inclusive, representing the number of layers.
  • C is an integer between 2 and 4, inclusive, representing the number of colors.
  • g_{i,j}, the color of pixel (i,j) in the target image, is an integer between 0 and C, inclusive.
    • Not all colors 1,\cdots,C need to appear in the target image.
    • The number of non-transparent pixels in the target image is at least N^2/2.

The four inputs you generate must all be distinct.

If the submitted text file correctly contains four inputs that satisfy all of the above specifications, you will receive AC and earn 1 point.