Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7405 - Давхар давталт 5

Өгөгдсөн тоон тусламтайгаар жишээн дээрхтэй төстэй тоон хэлбэрийг үүсгэ.

Input

Бүхэл тоо өгөгдөнө.

Output

Жишээн дээрхтэй төстэй тоон хэлбэрийг үүсгэ.

Example

Input:
5

Output:
5 4 3 2 1
5 4 3 2
5 4 3
5 4
5

Нэмсэн:Bataa
Огноо:2013-01-14
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2019-03-14 05:43:59
#include <bits/stdc++.h>
using namespace std;

int main() {
int j,i,n;
cin>>n;
for(i=1; i<=n; i=i+1)
{
for(j=n; j>=i; j=j-1)
cout<<j<<" ";
cout<<endl;
}
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.