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.|

RGB7404 - Давхар давталт 4

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

Input

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

Output

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

Example

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

Нэмсэн: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
2024-11-08 11:20:31
#include <iostream>
using namespace std;

int main() {

int a;
cin >> a;
for(int i = a; i >= 1; i--){
for(int j = a; j >= i; j--){
cout << j << " ";
}
cout << endl;
}

return 0;
}
zqoa avo
2024-10-09 12:28:29
#include <iostream>

int main() {
int n;
std::cin >> n;

for (int i = 0; i < n; ++i) {
for (int j = 0; j < n - i; ++j) {
std::cout << (n - j) << " ";
}
std::cout << std::endl;
}


}
2024-06-29 11:43:28
niger
2024-05-20 05:49:49
kjkhj


Last edit: 2024-05-20 05:50:09
2024-05-20 05:47:16
alna shu unsahd bnu
2024-04-28 11:33:08
#include <stdio.h>
int main()
{
int n,i,j;
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=n;j>=i;j--)
printf("%d ",j);
printf("\n");
}
return 0;
}
huuul suga sda nar
2024-04-22 05:42:41
ndd hicel bish nz bandida mongol hel zaj ugurei =)
2024-04-22 05:27:02
+pormnbty6jnmklmGHVcrE
jk6
l=0-2



"?jkmn bghvAWq
{}?ikm ,bhyt


ghty45b
2024-04-22 05:26:31
,

Last edit: 2024-04-22 05:35:20
2024-04-22 05:25:26
,

Last edit: 2024-04-22 05:27:24
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.