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
2025-02-19 03:08:32
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int i, j, n;

cin >> n;
for (i = 1; i <= n; i++) {
for (j = 1; j <= i; j++) {
cout << j;
cout << " ";
}
cout << " ";
cout << "" << endl;
}
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
2025-02-06 08:52:27
AOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOAAAAAAAAAAAAAAOAOAOAOAOAOOAAOAOAOAOAOOAOOOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOOOOOOOOOOOOOOOOOOOOOOOOOOOAAAAOAOAOAOAOAOAOA

2025-02-05 06:10:19
#include <iostream>
using namespace std;
int main(){
int a,b,e;
cin>>b;
a=b+1;
for(int c=1; c<a+1; c++) {
for(int d=0; d<c-1; d++){
e=d+1;
cout<<e<<" ";
}
cout<<"\n";
}
}
2025-02-02 17:01:00
#include<iostream>
#include<cmath>
using namespace std;
int main (){
int a;
cin>>a;
for(int i=1; i<=a;i++){
for(int j=1; j<=i ; j++)
cout<<j<<" ";
cout<<endl;
}

return 0;
}//zzo amjilt
2024-12-06 09:11:13
enig oilgohgu baival zueree bi c gsn oilgohgu bn hamtdaa huultsgaaay homies (gehde brgl oilgoj bn ks)
2024-12-05 10:49:14
yeah homie . first time i am seeing positive comment nice
2024-08-26 07:45:38
bi chmg yah gj orj irseniig chn mednee
2024-04-10 12:51:53
hii
2024-01-24 15:45:41
suddenly im gettin dumb asf
2024-01-21 10:15:46
#include <stdio.h>
int n,i,j;
int main()
{
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
printf(" %d",j);
printf("\n");
}
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.