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

RGB7403 - Давхар давталт 3

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

Input

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

Output

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

Example

Input:
5
Output:
1 2 3 4 5
1 2 3 4
1 2 3
1 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
2022-01-07 16:41:42
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d",&a);
for(b=a ; b>=1 ; b--){
for(c=1 ; c<=b ; c++)
printf("%d ",c);
printf("\n");
}
}
pls copy this
2022-01-06 10:50:04
X(

Last edit: 2022-01-06 10:50:20
2020-12-18 11:38:17
#include <iostream>
using namespace std;
int main(){
int n,i = 1,c = 1;
cin >> n;
for(i=1;i<=n;){
c = 1;
for(c=1;c<=n;c++){
cout << c <<" "; }
n--;
cout <<"\n";
if(n==0){
cout <<""<<endl;
return 0;
}
}

}

bilguunerkh
2020-12-14 04:08:53
#include <iostream>
using namespace std;
int main(){
int n,i = 1,c = 1;
cin >> n;
for(i=1;i<=n;){
c = 1;
for(c=1;c<=n;c++){
cout << c <<""; }
n--;
cout <<"\n";
if(n==0){
cout <<""<<endl;
return 0;
}
}

}

#include <iostream>
using namespace std;
int main(){
int n,i = 1,c = 1;
cin >> n;
for(i=1;i<=n;){
c = 1;
for(c=1;c<=n;c++){
cout << c <<""; }
n--;
cout <<"\n";
if(n==0){
cout <<""<<endl;
return 0;
}
}

}

2019-10-19 07:20:56
#include <cstdio>

int main () {
int n;
scanf("%d", &n);
for(int i = n ; i >= 1 ; i--){
for(int j = 1 ; j <= i ; j++){
printf("%d ", j );
}
printf("\n");
}
}
2019-03-29 07:09:11
#include<bits/stdc++.h>
using namespace std;
main()
{
int n,i,l,j;
cin>>n;
for(i=n; i>=1; i--){
for (j=1; j<=i; j++){


cout<<j<<" ";
}

cout<<endl;
}return 0;

}
correct
2018-12-18 07:23:36
#include <bits/stdc++.h>
using namespace std;

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