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

RGB7402 - Давхар давталт 2

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

Input

Бүхэл тоо өгөгдөнө. 10-аас бага.

Output

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

Example

Input:
5
Output:
1
1 2
1 2 3
1 2 3 4
1 2 3 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
2021-02-16 10:33:57
yugaa haraav
2021-02-05 10:27:22
??????
??? ???
?? ???
???
???
???
???

???
???битгий хар sda
2020-08-10 07:51:45
#include <iostream>
using namespace std;
int main(){
int n,i,j;
cin>>n;
for(i=1;i<=n;i++){
for(j=1;j<=i;j++){
cout<<j<<" ";
}
cout<<endl;
cout<<endl;
}
return 0;
}
2019-12-09 08:36:17
??????
??? ???
?? ???
???
???
???
???

???
???
2019-03-29 06:57:01
correct

Last edit: 2019-03-29 07:09:41
2018-12-13 09:32:11
#include <bits/stdc++.h>
using namespace std;

int main(){
int n,i,j;
cin>>n;
for(i=1;i<=n;i++){
for(j=1;j<=i;j++){
cout<<j<<" ";
}
cout<<endl;
cout<<endl;
}
return 0;
}
2018-11-04 04:11:34
#include<cstdio>

int main ()
{
int n,i,g;
scanf("%d",&n);
for(g=1; g<=n; g++)
{
for(i=1; i<=g; i++)
printf("%d ",i);
printf("\n") ;
}
return 0;
}
2018-12-13 08:13:59
#include <bits/stdc++.h>
using namespace std;

int main(){
int n,i,j;
cin>>n;
for(i=1;i<=n;i++){
for(j=1;j<=i;j++){
cout<<j<<" ";
}
cout<<endl;
cout<<endl;
}
return 0;
}
2018-11-04 04:11:34
#include<cstdio>

int main ()
{
int n,i,g;
scanf("%d",&n);
for(g=1; g<=n; g++)
{
for(i=1; i<=g; i++)
printf("%d ",i);
printf("\n") ;
}
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.