import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = in.nextInt(); // 输入的数字 num int lastRowFirst = 1; for (int i = 0; i < num; i ++) { // 一共要输出 num 行 int rowFirst = ...