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
2023-04-16 04:59:06
#include <iostream>
using namespace std;
int main()
{
long long int n,j;
cin>>n;
for(int i=1;i<=n;i++)
{
for( j=n;j>=i;j--)

cout<<j<<" ";
cout<<"\n";
}
return 0;

} huul2
2023-02-15 16:51:14
Hinoru bna






#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int n,j;
cin>>n;
for(int i=1;i<=n;i++)
{
for( j=n;j>=i;j--)

cout<<j<<" ";
cout<<"\n";
}
return 0;

}
2023-01-27 09:22:44
#include<stdio.h>
int main(){
int a, c,i;
scanf("%d",&a);
for(i=1;i<=a;i++)
{
for(c=a;c>=i;c--)
{
printf("%d ",c);

}
printf("\n");
}

}
sanaa aw2
2022-12-03 07:57:48
#include<iostream>
using namespace std;
int main()
{
int a, b, i, c, d=0, e;
scanf("%d",&a);
for(i=1;i<=a;i++)
{
for(c=a;c>=i;c--)
{
printf("%d ",c);

}
printf("\n",c);
}

}

Last edit: 2022-12-03 07:59:14
2022-11-29 11:21:11
#include <iostream>
using namespace std;
int main() {
int n,i,a;
cin >> n;
for(i=1; i<=n; i++){
for(a=n; a>=i; a--)
{
cout<<a<<" ";
}
cout<<endl;
}
return 0;
}
for ur mom
2022-01-08 14:03:02
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d",&a);
for(b=1 ; b<=a ; b++)
{
for(c=a ; c>=b ; c--)
printf("%d
",c);
printf("\n");
}
}
pls copy this
2021-11-18 03:47:52


Last edit: 2021-11-23 01:27:51
2021-06-10 15:26:33
#include <iostream>
using namespace std;
int main() {

int n, i,k;
cin >> n;


for(i=1; i<=n; i++){
for(k=n; k>=i; k--)
{
cout<<k<<" ";
}

cout<<endl;

}
return 0;
}
2020-01-16 14:17:42
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n;
cin >> n;
n = (n + 2);
int o = n - 1;
int y = n - 2;
int i = 0;
int j = 0;
while (i < y)
{
i++;
n = o;
j = (j + 1);
while (n > j)
{
n--;
cout << " " << n;
}
cout << endl;
cout << endl;
}
return(0);
}
2020-01-08 06:16:01
#include <iostream>
using namespace std;
int main()
{
int n,i,l,j;
cin>>n;
for(i=1; i<=n; i++)
{
for(j=n; j>=i; j--)
{
cout<<j<<" ";
}
cout<<endl;
}
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.