import java.io.*; //牛客网刚刚完成了一次更新,怪不得我这里突然就没反应了,刷半天都没有反应,还以为是网速不行。ccccc public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; while((str = br.readLine())!=null){ int num = Integer.parseInt(str); StringBuilder sb = new StringBuilder(); for(int i = 1; i <= num; i++){ int start = (i - 1) * i / 2 + 1; int step = i + 1; for(int j = 1; j <= num - i + 1; j++){ sb.append(start).append(" "); start += step; step ++ ; } sb.setCharAt(sb.length()-1,'\n'); } sb.deleteCharAt(sb.length()-1); System.out.println(sb.toString()); } } }