n = int(input()) for i in range(n): for j in range(1, n-i+1): print(n-i, end=" ") print()
5
5 5 5 5 5 4 4 4 4 3 3 3 2 2 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!